« Previous Next »

Answered Thread: Host headers need different redirects

Last post 12-17-2008 11:47 AM by tomkmvp. 7 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (8 items)

Sort Posts:

  • 12-15-2008, 2:49 PM

    Host headers need different redirects

    Hi all!  I'm a newb, so be kind.  Here's my issue.  I'm using IIS 6.0 and I have an application that will only let me install it's web components (virtual directories) under the default web site.  So I have the main server address set up with no host header so that it will display our site when it can't find anything else.  I have set up another ip address and host header for the aforementioned application (which are the virtual directories), but how can I direct it to either a specific page, or another directory.  The host header only lets me set the domain, and I can't add a sub-directory to it.  To recap:  I want the "default web site" to show our corporate page by default, but I want anyone going to the host header "stupidapp.mycompany.com" to reach a different page on the default site.  Clear as mud?  I hope someone out there knows of which I speak.....

    Thanks!

    Chuck

  • 12-17-2008, 10:37 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,254
    • IIS MVPs

    Re: Host headers need different redirects

    Do you want them to continue browsing at stupidapp.mycompany.com?

  • 12-17-2008, 10:43 AM In reply to

    Re: Host headers need different redirects

    Thanks for answering!  Yes, I want to offer a page that gives them a choice of admin logon page or regular web access logon page.  But it's getting to that initial link page that poses the problem.  I have them accessing now by going directly to the sub-directory (stupidapp.mycompany.com/stupidapplogon).  This works, but I'd hoped that just the domain itself would take them to a page (other than the default company webpage).

     Chuck

  • 12-17-2008, 10:54 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,254
    • IIS MVPs

    Re: Host headers need different redirects

    I'm having trouble understanding exactly what you need and why.

    But anyway, you can set the root folder of the stupidapp web site to be whatever you want - so just point the root to the right physical folder and make whatever page you need to be the default page.

  • 12-17-2008, 11:01 AM In reply to

    Re: Host headers need different redirects

     It might be easier just setting up 2 sites 1 for your main site and another for your subdomain.

  • 12-17-2008, 11:05 AM In reply to

    Re: Host headers need different redirects

    Ah, therein lies the problem.  This application will only install subdirectories under the "default web site".  THe default web site points to the directory of our corporate page, because that's what we want to come up by default.  Now, I can put an additional host header on that site, but the root directory is always going to be the default page.  It works as it is now, going straight to the app subdirectory, but just going to the app domain name give you the corporate page, instead of the one I'd like them to see. 

  • 12-17-2008, 11:44 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,254
    • IIS MVPs

    Answered Re: Host headers need different redirects

    Right - create a new web site, give it the app host header, and use one of the sub directories as the root.

  • 12-17-2008, 11:47 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,254
    • IIS MVPs

    Re: Host headers need different redirects

    ... or maybe use the new web site as the corporate site?  Create a new folder under inetpub, say corporate, and use that as the root - copy all of the main site files there and then just use the existing default site for the app.

Page 1 of 1 (8 items)
Microsoft Communities