Apache configuration Forwarding

The first:

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

ProxyRequests Off
ProxyPreserveHost on

ProxyPass /xxx/ http://xxx.com:8000/xxx/
ProxyPassReverse /xxx/ http://xxxcom:8000/xxx/

 

The second

Redirect "/xxx/" "http://xxx.com/xxx/"

 

the difference:

The first non-user perception, and the second will modify the address in the browser address bar.

Guess you like

Origin www.cnblogs.com/413xiaol/p/11442110.html
Recommended