[Gllug] Apache mod_proxy question.

Leigh Mason leigh at silkstream.net
Tue Sep 30 11:13:55 UTC 2003


Have you tried putting /login.nsf and /mail before /.

e.g.

	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
	ProxyPass / http://webmail.westbourne-terrace.com/
	ProxyPassReverse / http://webmail.westbourne-terrace.com/

Just a thought.

Leigh


-----Original Message-----
From: gllug-bounces at linux.co.uk [mailto:gllug-bounces at linux.co.uk]On
Behalf Of Simon Morris
Sent: 30 September 2003 11:48
To: gllug at linux.co.uk
Subject: [Gllug] Apache mod_proxy question.


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





-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list