---
title: "简单配置apache tomcat 虚拟主机"
author: "ericxu131"
date: "2008-09-04T13:19:57Z"
tags: []
slug: "apache-tomcat"
draft: false
lastmod: "2008-09-04T13:19:57Z"
id: 236808
url: "https://ericxu131.iteye.com/blog/236808"
---

修改x:\apache-tomcat-6.0.14\conf文件夹下的server.xml
添加

```xml

<Host name="域名"  appBase="webapp文件夹地址"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
            
            <Context docBase="应用war包" path="上下文路径" reloadable="true" />
            
            </Host>

```

搞定