| Ray.McDermott@gmail.com 2005-05-20, 5:58 pm |
| Hello folks,
I have a small problem re-directing traffic from my server to another
site.
First some technical background - I am running an Apache 2.0.49 web
server on Suse Linux 9.3. For the sake of this example call the server
www.foobar.com
Some parts of the domain (e.g. webmail) are located on external servers
by another company that provide our POP3 and Webmail services.
Until now I have used 'redirect' for the service thus:
redirect /webmail http://web3.hostingweb.co.uk:81/webmail/
And now the problem: Generally this works fine but becomes a problem
for sites where port 81 is not allowed by the firewall policy (i.e.
only port 80 can be used for HTTP). In these cases I would like to
fold the mail service into the domain of the Apache server and provide
a proxy for it over port 80.
I have attempted to fix this using the following config:
ProxyRequests off
ProxyPass /mail
http://web3.hostingweb.co.uk:81/webmail
ProxyPassReverse /mail
http://web3.hostingweb.co.uk:81/webmail
[Incidentally - using '/webmail' on the left hand side gave me what
seemed like recursion problems!]
The service now comes up with a login page which seems to work but the
email content comes back empty (no HTML at all but does not 404 or
500). It usually shows the standard list of emails and functions one
would expect.
So, I would be grateful for some pointers on what I am doing wrong and
of course any help in fixing the problem or proposed solutions would be
warmly welcomed - especially if it has anything to do with mod_rewrite!
Best regards,
ray
|