Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to set up an automatic redirect from http://webmail.domain.com to https://webmail.domain.com/owa of our Exchange Server 2013 CU1 using the IIS interface.

The old trick to just redirect the Default Web Site or the iisstart.htm redirect only works with https://webmail.domain.com (note that we need to specifiy https). Using only http:// will end up in a 403 Forbidden page for IIS.

The question is: how to setup this correctly so our users can connect in webmail.domain.com and it automatically redirects to https://webmail.domain.com/owa

Thanks,

share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

I was able to solve my own problem using IIS Rewrite Mod. I was little confused when found this, since Rewrite Mod is well know in Unix world with the Apache Web Server.

Anyway, just downloaded and installed the IIS Rewrite Mod from here: http://www.microsoft.com/en-us/download/details.aspx?id=7435

And then modify web.config in wwwroot with this XML code:

<configuration> <system.webServer> <rewrite> <rules> <rule name="HTTPS Redirect" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true" /> </conditions> <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" /> </rule> </rules> </rewrite> </system.webServer> </configuration>

With this approach I was able to redirect HTTP to HTTPS in Exchange 2013.

And don't forget to disable the "Require SSL" option in the Default Web Site on IIS Control Panel or you'll get and 403 Unauthorised error page.

share|improve this answer
add comment

I like to require SSL and bounce the 403.4 error to https://domain/owa on the root and OWA applications.

share|improve this answer
    
I think this is the best answer. No extra software to install, requires minimal configuration, and worked like a champ. –  idon'twearsuits Nov 19 '13 at 20:10
add comment

Good deal glad to see you found another way of doing this.

The way I have been doing this is by using the redirect to force a redirect to SSL by clicking the HTTP redirect on the default site. From there type in the absolute path like https://mail.domain.com/owa and then checking the "only redirect requests to content in this directory" checkbox. Turn off require SSL in the SSL settings and poof, you have your redirect with no rewrite mod required.

P.S. This article mentions an extra step to editing permission for downloading of the offline address book.

http://technet.microsoft.com/en-us/library/aa998359(v=exchg.150).aspx

share|improve this answer
    
This doesn't seem to work with Exchange 2013 and that's the problem the OP (and I) is having. –  idon'twearsuits Nov 19 '13 at 20:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.