Re: Using Apache as proxy in port-forwarding role (inward to misbehaving NATted devices)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Philip Prindeville wrote:
[snip]

I'm using the config:

LoadFile        /usr/lib64/libxml2.so.2
LoadModule      proxy_html_module       modules/mod_proxy_html.so
...
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
...
ProxyHTMLEvents onclick ondblclick onmousedown onmouseup \
               onmouseover onmousemove onmouseout onkeypress \
               onkeydown onkeyup onfocus onblur onload \
               onunload onsubmit onreset onselect onchange
...
# Local stuff, added by philipp on 6/19/2008

<IfModule mod_proxy.c>
 ProxyRequests Off
</IfModule>

<Proxy *>
 Order deny,allow
 Allow from all
</Proxy>

ProxyPass       /xxx/  http://192.168.1.13/
ProxyHTMLURLMap         http://192.168.1.13 /xxx

<Location /xxx/>
 ProxyPassReverse      /
 SetOutputFilter       proxy-html
 ProxyHTMLURLMap       /       /xxx/
 ProxyHTMLURLMap       /xxx   /xxx
 RequestHeader         unset   Accept-Encoding
</Location>

# for debugging
ProxyHTMLLogVerbose     On
LogLevel                Debug


So what am I missing?

Thanks,

-Philip


Actually, just tried something simpler:

% wget -q -S -O - http://www.redfish-solutions.com/xxx/
HTTP/1.1 200 OK
Date: Fri, 20 Jun 2008 03:55:18 GMT
Server: Boa/0.94.14rc18
Accept-Ranges: bytes
Last-Modified: Fri, 20 Jun 2008 03:55:18 GMT
Content-Type: text/html;charset=utf-8
Content-Length: 93

<html><head><meta http-equiv="refresh" content="0;url=/default"></head><body>
</body></html>

So even the <meta> attributes didn't get rewritten.

Tried adding:

ProxyHTMLLinks	meta	content


but that didn't seem to make any difference.

-Philip


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux