[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-httpd-users
Subject: [users@httpd] mod_html_proxy problem
From: electro <electro93 () gmail ! com>
Date: 2010-12-28 17:41:31
Message-ID: AANLkTikGuACSSQqb_YNjQyt8D5URpOu3zRHQT8GZSs3Z () mail ! gmail ! com
[Download RAW message or body]
All,
I am experiencing the following issues:
1. When I hit http://<ip address>/url1/ it first forwards me to
www.sears.com. 2nd try kicks the reverse proxy in action. Why does it take
a 2nd try and doesnt work on the 1st?
2. For some reason, the reverse proxy is trying to fetch *.js files off the
remote server from the rewritten URLs. I am using ProxyHTMLURLMap with
"ec" to prevent the rewriting of scripts, but it keeps giving me a 404 error
with my config as it tries to fetch the *.js files from the rewritten URL.
Any assistance is much appreciate. Thank you!
Please review the following apache config:
####################################################################
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule headers_module modules/mod_headers.so
LoadFile /usr/lib64/libxml2.so
LoadModule proxy_html_module modules/mod_proxy_html.so
LoadModule xml2enc_module modules/mod_xml2enc.so
LoadModule deflate_module modules/mod_deflate.so
# We're using SSL upstream, so we must enable it.
SSLProxyEngine on
ProxyRequests off
# By default, iframes are not searched.
ProxyHTMLLinks a href
ProxyHTMLLinks area href
ProxyHTMLLinks link href
ProxyHTMLLinks img src longdesc usemap
ProxyHTMLLinks object classid codebase data usemap
ProxyHTMLLinks q cite
ProxyHTMLLinks blockquote cite
ProxyHTMLLinks ins cite
ProxyHTMLLinks del cite
ProxyHTMLLinks form action
ProxyHTMLLinks input src usemap
ProxyHTMLLinks head profile
ProxyHTMLLinks base href
ProxyHTMLLinks script src for
ProxyHTMLLinks iframe src
ProxyHTMLEvents onclick ondblclick onmousedown onmouseup \
onmouseover onmousemove onmouseout onkeypress \
onkeydown onkeyup onfocus onblur onload \
onunload onsubmit onreset onselect onchange
# Enable debug logging.
ProxyHTMLLogVerbose On
LogLevel Debug
ProxyHTMLExtended On
ProxyHTMLMeta On
ProxyPass /url1/ http://www.sears.com/
<Location /url1/>
ProxyPassReverse /
ProxyHTMLEnable On
ProxyHTMLURLMap / /url1/ ec
ProxyPassReverseCookiePath / /url1/
RequestHeader unset Accept-Encoding
</Location>
##########################################################################
[Attachment #3 (text/html)]
All,<br><br>
I am experiencing the following issues:<br><br>1. When I hit http://<ip \
address>/url1/ it first forwards me to <a \
href="http://www.sears.com">www.sears.com</a>. 2nd try kicks the reverse proxy in \
action. Why does it take a 2nd try and doesnt work on the 1st?<br> <br>2. For some \
reason, the reverse proxy is trying to fetch *.js files off the remote server from \
the rewritten URLs. I am using ProxyHTMLURLMap with "ec" to prevent the \
rewriting of scripts, but it keeps giving me a 404 error with my config as it tries \
to fetch the *.js files from the rewritten URL.<br> <br>Any assistance is much \
appreciate. Thank you!<br><br>Please review the following apache \
config:<br><br>####################################################################<br><br>LoadModule \
proxy_module modules/mod_proxy.so<br> LoadModule proxy_http_module \
modules/mod_proxy_http.so<br>LoadModule headers_module \
modules/mod_headers.so<br>LoadFile /usr/lib64/libxml2.so<br>LoadModule \
proxy_html_module modules/mod_proxy_html.so<br>LoadModule xml2enc_module \
modules/mod_xml2enc.so<br> LoadModule deflate_module modules/mod_deflate.so<br><br># \
We're using SSL upstream, so we must enable it.<br>SSLProxyEngine \
on<br>ProxyRequests off<br><br># By default, iframes are not \
searched.<br>ProxyHTMLLinks a href<br> ProxyHTMLLinks area \
href<br>ProxyHTMLLinks link href<br>ProxyHTMLLinks img src \
longdesc usemap<br>ProxyHTMLLinks object classid codebase data \
usemap<br>ProxyHTMLLinks q cite<br> ProxyHTMLLinks blockquote \
cite<br>ProxyHTMLLinks ins cite<br>ProxyHTMLLinks del \
cite<br>ProxyHTMLLinks form action<br>ProxyHTMLLinks input src \
usemap<br>ProxyHTMLLinks head profile<br> ProxyHTMLLinks base \
href<br>ProxyHTMLLinks script src for<br>ProxyHTMLLinks iframe \
src<br><br>ProxyHTMLEvents onclick ondblclick onmousedown onmouseup \<br> \
onmouseover onmousemove onmouseout onkeypress \<br> onkeydown onkeyup onfocus onblur \
onload \<br> onunload onsubmit onreset onselect onchange<br><br><br># \
Enable debug logging.<br>ProxyHTMLLogVerbose On<br>LogLevel \
Debug<br><br>ProxyHTMLExtended On<br> ProxyHTMLMeta On<br><br>ProxyPass /url1/ <a \
href="http://www.sears.com/">http://www.sears.com/</a><br><br><Location \
/url1/><br> ProxyPassReverse /<br> ProxyHTMLEnable On<br> \
ProxyHTMLURLMap / /url1/ ec<br> ProxyPassReverseCookiePath / \
/url1/<br> RequestHeader unset \
Accept-Encoding<br></Location><br><br>##########################################################################<br><br>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic