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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux