---
title: "tomcat下主机头配置"
author: "邪神Saber"
date: "2014-06-03T09:44:00Z"
tags: []
slug: "tomcat"
draft: false
lastmod: "2014-06-30T15:10:04Z"
id: 2086715
url: "https://softblog.iteye.com/blog/2086715"
---

```
<Host name="localhost"  appBase="webapps" unpackWARs="true" autoDeploy="true">
</Host>
<Host name="www.test1.com"  appBase="webapps" unpackWARs="true" autoDeploy="true">
	<Alias>www.test1.com</Alias>
	<Context path="" docBase="/data/webapps/test1" debug="0"/>
</Host>
<Host name="www.test2.com"  appBase="webapps" unpackWARs="true" autoDeploy="true">
	<Alias>www.test2.com</Alias>
	<Context path="" docBase="/data/webapps/test2" debug="0"/>
</Host>
```