httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Iliffe <john.ili...@iliffe.ca>
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:   http://192.168.1.12:8080 and works OK.

I read the Apache docs and also:
http://www.apachetutor.org/admin/reverseproxies
and created the following config file:

NameVirtualHost *:80

# Default host 
<VirtualHost *:80>
   ServerName www.xxxxx.ca
   DocumentRoot /httpd/xxxxx
   ProxyRequests off
   ProxyPass /mymail/* !
   ProxyPass /mymail/ http://192.168.1.12:8080
   ProxyPassReverse /mymail/ http://192.168.1.12:8080

   ProxyHTMLEnable On

   <Location /mymail/ >
	ProxyHTMLURLMap / /mymail/
   </Location>
</VirtualHost>

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: 192.168.1.12:7080kookie
-----------------------------

"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:
  mod_proxy.c
  mod_proxy_connect.c
  mod_proxy_ftp.c
  mod_proxy_http.c
  mod_proxy_scgi.c
  mod_proxy_ajp.c
  mod_proxy_balancer.c

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

Regards, and thanks in advance,

John




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message