1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| $ vi /etc/apache2/mods-available/proxy.conf ProxyRequests On <Proxy *> AddDefaultCharset off Order deny,allow #Deny from all Allow from .shixf.com </Proxy>
$ vi /etc/apache2/sites-available/default ProxyRequests Off ProxyPreserveHost On
<Proxy *> Order deny,allow Allow from all </Proxy>
ProxyPass /wiki http://localhost:4567/wiki ProxyPassReverse /wiki http://localhost:4567/wiki
<Location /wiki> Order allow,deny Allow from all ProxyPass http://localhost:4567/wiki ProxyPassReverse /wiki </Location>
|