\参考资料 http://www.linuxeye.com/configuration/2806.html
<!DOCTYPE server-xml [
<!ENTITY vhost-localhost SYSTEM "file:///D: omcatconfvhostlocalhost.xml">
]> \windows 加在<server>前面
<!DOCTYPE server-xml [
<!ENTITY vhost-localhost SYSTEM "file:///usr/local/tomcat/conf/vhost/localhost.xml">
]> \linux 加在<server>前面
<Engine name="Catalina" defaultHost="localhost">
... \其他配置
&vhost-localhost; \加上这个
</Engine>
\在confvhostlocalhost.xml 加上自定义的<host>段
<host ...>
...
</host>
华旅网络 |