Forum Moderators: phranque
<Proxy *:80>...</Proxy>
<Proxy proxy.example.com:80>...</Proxy>
<Proxy *>...</Proxy>
<Proxy proxy.example.com>...</Proxy>
<VirtualHost *:80>...</VirtualHost>
<Location />...</Location> ProxyPass / http://proxy.example.com:8118
ProxyPassReverse / http://proxy.example.com:8118
ProxyRequests On
ProxyVia On
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
ProxyRemote * http://proxy.example.com:8118 [edited by: phranque at 6:01 am (utc) on Jun 29, 2013]
[edit reason] unlinked & exemplified urls [/edit]
If the first argument ends with a trailing /, the second argument should also end with a trailing / and vice versa. Otherwise the resulting requests to the backend may miss some needed slashes and do not deliver the expected results.
<VirtualHost *:80>
ServerAlias "proxy.example.com"
ServerName example.com
ProxyPass / http://proxy.example.com:8118/
ProxyPassReverse / http://proxy.example.com:8118/
ProxyRequests On
</VirtualHost> [edited by: phranque at 12:26 am (utc) on Jun 30, 2013]
[edit reason] Please Use Example.com [webmasterworld.com] [/edit]