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
长春语林科技 阅读(432)
评论(0) 编辑 收藏 所属分类:
linux