# Virtual hosts
Include etc/extra/httpd-vhosts.conf
2.在httd-vhost.conf下設(shè)置Include etc/extra/httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot /var/www/publfactory_cn
ServerName www.jlhsjx.com
ProxyPass / http://www.jlhsjx.com:8080/
ProxyPassReverse / http://www.jlhsjx.com:8080/
DirectoryIndex index.htm index.html index.jsp default.html defautl.htm default.jsp
ErrorLog logs/jlhsjx.com-error_log
CustomLog logs/jlhsjx.com-access_log common
</VirtualHost>
3.在linux vi /etc/hostsDocumentRoot /var/www/publfactory_cn
ServerName www.jlhsjx.com
ProxyPass / http://www.jlhsjx.com:8080/
ProxyPassReverse / http://www.jlhsjx.com:8080/
DirectoryIndex index.htm index.html index.jsp default.html defautl.htm default.jsp
ErrorLog logs/jlhsjx.com-error_log
CustomLog logs/jlhsjx.com-access_log common
</VirtualHost>
127.0.0.1 localhost localhost.localdomain localhost www.co-wins.com www.jlhsjx.com
4.在tomcat server.xml設(shè)置多個(gè)服務(wù)<Context ..............