httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Meth <>
Subject [users@httpd] Having problems with Reverse Proxy
Date Mon, 08 Dec 2008 21:22:19 GMT
The guidance tells me to start with my AIM first so here we go.

I want to run 3 or more servers on port 80. Has to be port 80 as my
remote location only allows traffic over port 80. All 3 work fine
individually but not together so I need to proxy.

Apache uses port 80, Sabnzbd uses 9000 and a hardcoded /sabnzbd/
address and uTorrent uses 6881 and a hardcoded /gui/ address

I want to get = to Apache, index.htm = to pass through to localhost:9000/sabnzbd/ = to pass through to localhost:6881/gui/

Taking a standard virgin Apache 2.2 install I have added:
to /bin these files:libxml2.dll, iconv.exe, iconv.dll and zlib1.dll
to /modules
to /conf proxy_html.conf (nothing touched in this file)

to the httpd.conf file

LoadFile bin/zlib1.dll
LoadFile bin/iconv.dll
LoadFile bin/libxml2.dll
LoadModule proxy_html_module modules/
LoadModule proxy_module modules/
LoadModule proxy_http_module modules/
LoadModule headers_module    modules/

ProxyRequests off
ProxyPass /nzb/ http://localhost:9000/sabnzbd/
ProxyPass /bt/ http://localhost:6881/gui/
ProxyHTMLURLMap http://localhost:9000/sabnzbd /nzb
ProxyHTMLURLMap http://localhost:6881/gui /bt

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

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

The BT redirect works but not properly - I get a distorted page where
I can tell its the interface but the page formatting is all screwed - gets me this but gets
me a file not found

The NZB redirect again doesnt work properly. I get the login page ok
but once I login it fails with a 404 - "The requested URL /sabnzbd/
was not found on this server."

It is probably something dumb like misplaced "/" but I'm not an Apache
expert. I definitely in the noob category so any help is MUCH


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message