<virtualhost *:80>
ServerAdmin [email protected]
DocumentRoot "/var/www/html/"
ServerName www.test.com
Serveralias test.com
Errorlog "Logs/test.com-error.log"
Customlog "Logs/test.com-access.log" common
Alias/html "/var/www/html/"
<directory "/var/www/html/" >
Options FollowSymLinks
AllowOverride All
Order Allow,deny
Allow from all
</Directory>
#正向代理设置, Internet Options---Connect---LAN settings---Proxy server--fill in www.test.com
Proxyrequests on
Proxyvia on
<proxy *>
Order Deny,allow
Deny from all
Allow from 10.0.0.1/8
</Proxy>
</VirtualHost>
<virtualhost *:80>
ServerAdmin [email protected]
DocumentRoot "/var/www/html/"
ServerName www.abc.com
Serveralias abc.com
Errorlog "Logs/abc.com-error.log"
Customlog "Logs/abc.com-access.log" common
Alias/html "/var/www/html/"
<directory "/var/www/html/" >
Options FollowSymLinks
AllowOverride All
Order Allow,deny
Allow from all
</Directory>
#反向代理设置
proxypass/http://www.test.com/
proxypassreverse/http://www.test.com/
</VirtualHost>
This article is from the "Freeterman" blog, make sure to keep this source http://myunix.blog.51cto.com/191254/1736228
Apache is forwarding the proxy reverse