can't get proxypass to work for OWA

Topics: Developer Forum, Project Management Forum, User Forum
Dec 19, 2012 at 4:17 PM

Hi,

We're running an IIS7 server and want to reroute all OWA traffic to the machine where exchange server is installed and thus OWA resides.

On our server we have a web-site that listens to www.ourserver.net.

Since just routing only our https://www.ourserver.net/owa  traffic to that server didn't work we tried to start by routing all trafic to that server. Later we can refine the rules so all none OWA stuff goes elsewhere.

Here's the ini file:

RewriteLog c:\logs\iirf

RewriteLogLevel 9

IterationLimit 5

RewriteEngine ON

StatusInquiry ON

RewriteCond %{SERVER_PORT} ^80$
ProxyPass ^/(.*)$ http://www.ourserver.net/$1 [PH]

RewriteCond %{SERVER_PORT} ^443$
ProxyPass ^/(.*)$ https://www.ourserver.net/$1 [PH]

This should do the trick, since we have set www.ourserver.net in our hosts file to point the the exchange server machine and the certificate for www.ourserver.net is properly installed.

I've seen the other discussion in this group where  certificate errors prevented OWA from working. That's not the case for us. HTTPS works and the certificate is accepted (https://www.ourserver.net  presents a correct page)

When we open https://www.ourserver.net/owa we are presented with the proper owa-login. 

However from that moment on we get a 404 on https://www.ourserver.net/owa/auth.owa

The size of the log is enormous... So I just paste the last part here:

=========================================

Wed Dec 19 17:50:27 -  3848 - GenerateReplacementString: replacing ($1) with 'owa/auth.owa'
Wed Dec 19 17:50:27 -  3848 - ApplyCaseConversion: before 'https://www.ourserver.net/owa/auth.owa'
Wed Dec 19 17:50:27 -  3848 - ApplyCaseConversion: after  'https://www.ourserver.net/owa/auth.owa'
Wed Dec 19 17:50:27 -  3848 - ApplyUrlEncoding: in 'https://www.ourserver.net/owa/auth.owa'
Wed Dec 19 17:50:27 -  3848 - ApplyUrlEncoding: out 'https://www.ourserver.net/owa/auth.owa'
Wed Dec 19 17:50:27 -  3848 - GenerateReplacementString: result 'https://www.ourserver.net/owa/auth.owa'
Wed Dec 19 17:50:27 -  3848 - EvaluateRules: Result (length 36): https://www.ourserver.net/owa/auth.owa
Wed Dec 19 17:50:27 -  3848 - EvaluateRules: returning 999
Wed Dec 19 17:50:27 -  3848 - GetServerVariable: getting 'HTTP_HOST'
Wed Dec 19 17:50:27 -  3848 - GetServerVariable: 16 bytes
Wed Dec 19 17:50:27 -  3848 - GetServerVariable: result 'www.ourserver.net'
Wed Dec 19 17:50:27 -  3848 - DoRewrites: Proxy to: 'https://www.ourserver.net/owa/auth.owa' (preserve host 'www.ourserver.net')
Wed Dec 19 17:50:27 -  3848 - GetServerVariable_AutoFree: getting 'ALL_RAW'
Wed Dec 19 17:50:27 -  3848 - GetServerVariable_AutoFree: 678 bytes
Wed Dec 19 17:50:27 -  3848 - GetServerVariable_AutoFree: result 'Cache-Control: no-cache
Connection: Keep-Alive
Content-Length: 115
Content-Type: application/x-www-form-urlencoded
Accept: text/html, application/xhtml+xml, */*
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,fr-FR;q=0.5
Cookie: __utma=261569806.628897503.13246312blabla etc...
Host: www.ourserver.net
Referer: https://www.ourserver.net/owa/auth/logon.aspx?replaceCurrent=1&url=https%3a%2f%2fwww.ourserver.net%2fowa
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)

Wed Dec 19 17:50:27 -  3848 - GetServerVariable_AutoFree: getting 'REQUEST_METHOD'

Wed Dec 19 17:50:27 -  3848 - GetServerVariable_AutoFree: 5 bytes

Wed Dec 19 17:50:27 -  3848 - GetServerVariable_AutoFree: result 'POST'

Wed Dec 19 17:50:27 -  3848 - IirfProxy_TryRelayEmptyBodyRequest: https://www.ourserver.net/owa/auth.owaWed Dec 19 17:50:27 -  3848 - ParseAllRaw: Cache-Control: no-cache
Connection: Keep-Alive
Content-Length: 115
Content-Type: application/x-www-form-urlencoded
Accept: text/html, application/xhtml+xml, */*
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,fr-FR;q=0.5
Cookie: __utma=261569806.628897503.1324631260.135590536blablabla...etc..Host: www.ourserver.net
Referer: https://www.ourserver.net/owa/auth/logon.aspx?replaceCurrent=1&url=https%3a%2f%2fwww.ourserver.net%2fowa
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Wed Dec 19 17:50:27 -  3848 - ParseAllRaw: hdr Cache-Control: no-cache

Wed Dec 19 17:50:27 -  3848 - ParseAllRaw: hdr Connection: Keep-Alive

Wed Dec 19 17:50:27 -  3848 - ParseAllRaw: hdr Content-Length: 115

Wed Dec 19 17:50:27 -  3848 - ParseAllRaw: hdr Content-Type: application/x-www-form-urlencoded

Wed Dec 19 17:50:27 -  3848 - ParseAllRaw: hdr Accept: text/html, application/xhtml+xml, */*

Wed Dec 19 17:50:27 -  3848 - ParseAllRaw: hdr Accept-Encoding: gzip, deflate

Wed Dec 19 17:50:27 -  3848 - ParseAllRaw: hdr Accept-Language: en-GB,fr-FR;q=0.5

Wed Dec 19 17:50:27 -  3848 - ParseAllRaw: hdr Cookie: __utma=261561blablabla...etc..

Wed Dec 19 17:50:27 -  3848 - ParseAllRaw: hdr Host: www.ourserver.net

Wed Dec 19 17:50:27 -  3848 - ParseAllRaw: hdr Referer: https://www.ourserver.net/owa/auth/logon.aspx?replaceCurrent=1&url=https%3a%2f%2fwww.ourserver.net%2fowa

Wed Dec 19 17:50:27 -  3848 - ParseAllRaw: hdr User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)

Wed Dec 19 17:50:27 -  3848 - ParseAllRaw: found 11 headers

Wed Dec 19 17:50:27 -  3848 - DoRewrites: internal rewrite to: '/proxy.iirf?host=www.ourserver.net&path=/LM/W3SVC/3/ROOT&url=https://www.ourserver.net/owa/auth.owa'

Wed Dec 19 17:50:27 -  3848 - ReleaseOrExpireVdirConfig: vdir '/LM/W3SVC/3/ROOT' (era=0) (rc=1) (Expired=0) (ptr=0x02039E80)...

=========================================

We have two exchange servers; one running exchange server 2013 and one running exchange 2007.  The OWA of both does not work via iirf. Both reply normally until the username and password is entered.

Any tips on how to solve this problem are very appreciated!

Thanks

Peter.