---
title: "tomcat-指定域名且不含应用名 "
author: "cfan_haifeng"
date: "2015-04-25T09:37:01Z"
tags: []
categories: ["开源软件"]
slug: "tomcat"
draft: false
lastmod: "2015-04-25T09:37:01Z"
id: 2206034
url: "https://sunfish.iteye.com/blog/2206034"
---

在server.xml中添加

```
   <Host name="crm.hello.com" appBase="webapps" unpackWARs="true" autoDeploy="false" xmlValidation="false" xmlNamespaceAware="false">     
                    <Context docBase="crmone" path=""  />    
       </Host>   
```