1.打開httd.conf下
# Virtual hosts
Include etc/extra/httpd-vhosts.conf
2.在httd-vhost.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/hosts
127.0.0.1 localhost localhost.localdomain localhost www.co-wins.com www.jlhsjx.com
4.在tomcat server.xml設置多個服務
<Context ..............
posted on 2012-04-28 16:31
長春語林科技 閱讀(437)
評論(0) 編輯 收藏 所屬分類:
linux