httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Iliffe <>
Subject [users@httpd] [Fwd: Reverse Proxy Configuration]
Date Sun, 06 Jun 2010 20:30:53 GMT
I sent the following request for help a couple of weeks back but so far
no response.  Maybe I didn't make the actual question clear :-(
Anyhow, I have done quite a bit of experimentation since with the
following non-results.

What I'm trying to do:

I have a mail server with a web interface; to avoid conflict with Apache
HTTP I have it on port 8080.  That port is blocked by the firewall so I
am trying to proxy it to HTTP/80 through Apache.  Internally, the mail
server is reached as: and works OK.

I read the Apache docs and also:
and created the following config file:

NameVirtualHost *:80

# Default host 
<VirtualHost *:80>
   DocumentRoot /httpd/xxxxx
   ProxyRequests off
   ProxyPass /mymail/* !
   ProxyPass /mymail/
   ProxyPassReverse /mymail/

   ProxyHTMLEnable On

   <Location /mymail/ >
	ProxyHTMLURLMap / /mymail/

I now have two (different) problems:

1.  If I delete the lines from <ProxyHTMLEnable On> to the final
</Location>, everything works to bring up the first page of the mail
server but any further action is precluded because all references are to
port 8080 which is blocked by the firewall.  (Internally, this works
fine, up to a point).  Subsequent requests lead to:

Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /mymail/kookie.

Reason: DNS lookup failure for:

"kookie" can be any of a large list of html pages, php pages, or
subdirectory/html pages as defined internally by the e-mail system.  The
proxy seems to be using the wrong document root but I can't prove that.

2.  If I leave these lines in, as I suspect I have to to resolve problem
#1, apachectl -S throws errors on both ProxyHTMLEnable and
ProxyHTMLURLMap and asks if I spelled the names wrong.

apachectl -l gives:

Compiled in modules:

So, obviously I missed something.  Does the above suggest anything?  

Regards, and thanks in advance,


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