位置在 /etc/httpd/http.conf http.conf 配置文件
<IfModule mod_proxy.c>
ProxyRequests On
<Proxy *>
Order deny,allow
Deny from all
Allow from all
</Proxy>
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
ProxyVia On
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
<VirtualHost * ( 192.168.16.103 ) :80>
DocumentRoot /usr/share/tomcat6/webapps /007feikecom
ServerName www.32hl.com
</VirtualHost>
本机注意该 * 为 IP
tomcat6 server.xml 配置
<Context path="" docBase="007feikecom" reloadable="true" crossContext="true"/>
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
重启 http
service httpd restart