这是我的反向代理的实际设法,
请参考:
<VirtualHost *:80>
ServerAdmin
[email protected]DocumentRoot "/home/www/Techdocs/htdocs"
ServerName Techdocs.xxx.edu.cn
#ServerAlias
http://www.dummy-host.example.cnErrorLog "/home/www/Techdocs/logs/error.log"
CustomLog "/home/www/Techdocs/logs/access.log" common
ProxyRequests Off
<Proxy *>
#Order deny,allow
#Allow from all
Require all granted
</Proxy>
ProxyPass /
http://techdocs.abc.cn:80/ProxyPassReverse /
http://techdocs.abc.cn:80/</VirtualHost>