Jump to content

Recommended Posts

Posted

I've got IIS 7 running a basic website on my 2K8R2 server, running on port 80. Also running on the server is my E-mail server with it's web interface running in it's build in web server running on port 3000 (for non HTTP) and also in HTTPS

 

The mail server does an automatic re-direct if you connect to it to drop it into HTTPS. This works fine from outside and fine from inside if you put in http:\\webmail:3000.

 

Simply putting in http:\\intranet will bring up the intranet.

 

No the problem comes if internally someone types in http:\\webmail as this brings up the intranet. As both DNS alias's resolve to the same server and web browsers default to port 80 this is not unexpected but I don't want it to happen.

 

Can I get IIS to understand that the web requests on port 80 where the URL is http:\\webmail are redirected to https:\\webmail even though that site is run in a different web server. i.e. it would need to completely redirect the web borwser to a different site.

  • 5 weeks later...
Posted

This is all down to how the listeners are setup, you can have the server listen to a port, ie 80 or for a hostname like webmail or intranet.

 

If your client types http://something it goes to the http port which is 80, if the client types in https://something the browser hits up 443

 

You need to change your intranet site to only listen on http://intranet rather than the whole of port 80, add a new site which listens on port 80 for http://webmail which has a default.asp page with a

 

<%
response.redirect("https://whatever")
%>

and leave your webmail listening for https://webmail on 443 so that it can pick up the redirected requests.

 

You'll need asp enabled on the webserver.

 

There are other ways to do it but I have tried many of them and had issues with most of them.

 

If you have an ISA/TMG server and split DNS there is another way to do it which works quite well too.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...