reverse proxy to access email problem

Discussion in 'Apache' started by sinkingfeeling, Feb 15, 2009.

  1. #1
    I have managed to set up a reverse proxy to enable users to access their company email from the net. I thought I was doing so well until I tried to use it today and, with out supplying any username/password I was presented with someone elses mailbox.
    The code i used was:

    ProxyRequests off
    ProxyPreserveHost on

    #OWA % character in email subject fix
    RewriteEngine On
    RewriteMap percentsubject int:escape
    RewriteCond $1 ^/exchange/.*\%.*$
    RewriteRule (/exchange/.*) ${percentsubject:$1} [P]

    #OWA
    ProxyPass /exchange hxxp://email/exchange
    ProxyPassReverse /exchange hxxp://email/exchange
    ProxyPass /Exchange hxxp://email/exchange
    ProxyPassReverse /Exchange hxxp://email/exchange
    ProxyPass /exchweb hxxp://email/exchweb
    ProxyPassReverse /exchweb hxxp://email/exchweb
    ProxyPass /public hxxp://email/public
    ProxyPassReverse /public hxxp://email/public
    ProxyPass /iisadmpwd hxxp://email/iisadmpwd
    ProxyPassReverse /iisadmpwd hxxp://email/iisadmpwd

    Please help. I am very new to apache and have no idea if If i have missed something obvious.
     
    sinkingfeeling, Feb 15, 2009 IP