[Gllug] Apache mod_proxy question.

Simon Morris smorris at batesuk.com
Tue Sep 30 10:47:35 UTC 2003


Hello:

I'm using Apache 2.0 on RH 8.0 to provide a reverse proxy for 2 Lotus
Domino servers.

When users go to the site they get redirected to the address of one of
the backend servers like so:

-----CLIENT TO SERVER-----
GET / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Host: webmail.westbourne-terrace.com
Connection: Keep-Alive

-----SERVER TO CLIENT-----

HTTP/1.1 302 Found
Date: Mon, 29 Sep 2003 09:49:02 GMT
Server: Lotus-Domino
Location:
http://wt-domino-01.westbourne-terrace.com/login.nsf?OpenDatabase&Login
Content-Length: 0
Connection: close
Content-Type: text/plain; charset=ISO-8859-1

Shouldn't the reverse proxy take care of these redirects? -- The
documentation [0] for mod_proxy (ProxyPassReverse) seems to think so!

The relevant parts of my httpd.conf are included. I have loads of
debugging available if anyone is interested!!

Thanks for any thoughts and looking forward to Linux Expo


<VirtualHost 172.26.254.21>
    ServerAdmin it_dept at xxxxx.com
    ServerName webmail.westbourne-terrace.com
    ErrorLog logs/webmail.westbourne-terrace.com-error_log
    CustomLog logs/webmail.westbourne-terrace.com-access_log common
    ProxyRequests Off
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
    ProxyPass / http://webmail.westbourne-terrace.com/

   # Internally the Reverse Proxy resolves the inside address of the
backend server (through the firewall)

    ProxyPassReverse / http://webmail.westbourne-terrace.com/
    ProxyPass /login.nsf http://webmail.westbourne-terrace.com/login.nsf
    ProxyPassReverse /login.nsf
http://webmail.westbourne-terrace.com/login.nsf
    ProxyPass /mail http://webmail.westbourne-terrace.com/mail
    ProxyPassReverse /mail http://webmail.westbourne-terrace.com/mail
</VirtualHost>



[0] http://httpd.apache.org/docs-2.0/mod/mod_proxy.html#proxypassreverse




-- 
Simon Morris
smorris at batesuk.com



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: This is a digitally signed message part
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20030930/8279f1f4/attachment.pgp>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug


More information about the GLLUG mailing list