Forum Moderators: phranque
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.
RewriteRule (/exchange/.*\%.*)$ ${percentsubject:$1} [P]
However, I doubt that optimizing your rule will have any effect on the problem. I suspect that the trouble is caused by some factor in the webmail server's authentication -- Perhaps it assumes that any intranet access is already authenticated, and since these requests will appear to be coming from your front-end server inside your network instead of from a remote client, it may just let them in.
However, you should flush you browser cache and then test again. Repeat this several times. Do you get a different user's account each time, or always the same one? You might get some strong debugging clues from the answer to this question.
Jim
I'd suggest searching for the name of your e-mail server, plus "proxy" and see if that truns up anything useful. Also try the support forum for that software.
In a setup like this, Apache is simply acting as an HTTP "pipe", so I have no idea how proxying the webmail requests might affect the e-mail program.
Another very-general tip: Try commenting-out all of the proxied request-path directive pairs but one, reducing your config to one ProxyPass and one ProxyPassReverse directive for the path of your choice. Debugging and testing may be a bit easier if you've got a reduced number of test-cases to work with.
Jim