Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache as a Reverse Proxy |
|
Author |
|
birkettm
Joined: 27 Apr 2006 Posts: 20
|
Posted: Wed 03 May '06 15:01 Post subject: Apache as a Reverse Proxy |
|
|
Hello.
Apologies if this has already been covered but i cant find it anywhere.
I have created a reverse proxy using Apache by following the instructions at http://www.apacheweek.com/features/reverseproxies. However i have noticed that after rewriting the links in the page it states that the re-written links will work in error correcting browsers.
I have this up and working great in Firefox but not in Internet Explorer. Obviously it needs to work in both but i have so far been unable to write the appropriate rules using either ProxyHTMLUrlMap or RewriteRule.
Has anyone managed to get an Apache Reverse Proxy working with IE too and can give me any pointers? Any help appreciated.
Below is my httpd.conf - it passes from localhost/extranet to testserver.
Code: |
##load modules
#proxy
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule headers_module modules/mod_headers.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule proxy_html_module modules/mod_proxy_html/mod_proxy_html.so
#caching
LoadModule cache_module modules/mod_cache.so
LoadModule disk_cache_module modules/mod_disk_cache.so
#environment stuff
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule rewrite_module modules/mod_rewrite.so
##configure reverse proxy
ProxyRequests off
ProxyHTMLLogVerbose On
LogLevel Debug
RewriteEngine On
RewriteLog logs/rewrites.log
ProxyPass /extranet http://testserver/
ProxyHTMLURLMap http://testserver /extranet
<Location /extranet>
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLUrlMap / /extranet/
ProxyHTMLUrlMap /extranet /extranet
RequestHeader unset Accept-Encoding
</Location>
|
In IE i just end up with something like http:///extranet rather than http://servername/extranet
Many thanks
marc |
|
Back to top |
|
|
|
|
|
|