apache 正向代理反向代理
<VirtualHost *:80>
ServerAdmin 523775@
DocumentRoot "/var/www/html/"
ServerName www.
ServerAlias
ErrorLog "logs/-error.log"
CustomLog "logs/-access.log" common
Alias /html "/var/www/html/"
<Directory "/var/www/html/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
#正向代理设置,internet选项---连接---局域网设置---代理服务器--填写www.
ProxyRequests On
ProxyVia On
<Proxy *>
Order deny,allow
Deny from all
Allow from 10.0.0.1/8
</Proxy>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin 523775@
DocumentRoot "/var/www/html/"
ServerName
ServerAlias
ErrorLog "logs/-error.log"
CustomLog "logs/-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./
ProxyPassReverse / http://www./
</VirtualHost>