1. First confirm whether there are mod_proxy.so mod_proxy_balancer.so mod_proxy_http.so three modules under/usr/lib/apache2/modules, if any, in/etc/apache2/ Mods-enabled inside with LN to establish the link, execute the code as follows:
Ln-s/etc/apache2/mods-available/proxy.load/etc/apache2/mods-enabled/proxy.load
Ln-s/etc/apache2/mods-available/proxy_http.load/etc/apache2/mods-enabled/proxy_http.load
Ln-s/etc/apache2/mods-available/proxy_balancer.load/etc/apache2/mods-enabled/proxy_banancer.load
If the mods-enabled directory has proxy.load proxy_http.load proxy_banancer.load The execution succeeds, the domain name is configured as follows:
<virtualhost *:80>
ServerAdmin [email protected]
ServerName #域名
Proxypass/http://www.baidu.com #代理url
Proxypassreverse/http://www.baidu.com #代理url
<directory/>
#options FollowSymLinks
#AllowOver Ride All
</Directory>
</VirtualHost>
So you enter the domain name will jump to Baidu
Apache Configure reverse Proxy notes