+ Post New Thread
Results 1 to 3 of 3
Windows Server 2008 R2 Thread, IIS7 webpage re-direct in Technical; I've got IIS 7 running a basic website on my 2K8R2 server, running on port 80. Also running on the ...
  1. #1

    Join Date
    Nov 2007
    Location
    Rotherham
    Posts
    1,678
    Thank Post
    122
    Thanked 126 Times in 102 Posts
    Rep Power
    45

    IIS7 webpage re-direct

    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.

  2. #2

    Join Date
    Nov 2007
    Location
    Rotherham
    Posts
    1,678
    Thank Post
    122
    Thanked 126 Times in 102 Posts
    Rep Power
    45
    As I posted this over the holidays I thought I might raise it up again to see if anyone knows an answer.

  3. #3

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,205
    Thank Post
    876
    Thanked 2,729 Times in 2,308 Posts
    Blog Entries
    11
    Rep Power
    782
    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

    Code:
    <%
    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.

SHARE:
+ Post New Thread

Similar Threads

  1. Re-Directing ISA destination sets
    By acrobson in forum How do you do....it?
    Replies: 1
    Last Post: 27th June 2007, 06:39 AM
  2. folder re direction
    By mac_shinobi in forum Windows
    Replies: 7
    Last Post: 17th June 2007, 05:38 PM
  3. Re-directed folder oddity
    By mark in forum Windows
    Replies: 3
    Last Post: 21st April 2006, 08:22 AM
  4. GP Folder Re-direction puzzle!!!
    By woody in forum Windows
    Replies: 15
    Last Post: 7th October 2005, 09:07 AM
  5. Folder re-direction borked!!!
    By SteveT in forum Windows
    Replies: 8
    Last Post: 8th September 2005, 08:33 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •