« Previous Next »

Thread: Running ASP website inside of another...

Last post 07-15-2008 9:23 AM by soupapes. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 07-14-2008, 6:46 PM

    • soupapes
    • Not Ranked
    • Joined on 07-14-2008, 6:28 PM
    • Posts 8

    Running ASP website inside of another...

    Heres my problem:

     

    I have a configured asp website in my IIS5 in a webserver pointed to a .COM domain, and it works fine.

    But I want to install a new website folder inside my primary website, so i can access it of this way:

     www.myprimarywebsite.com/MySecondWebsite/

     

    So i placed my second website folder, inside the folder of the primary web server.

     

    Then, i went to the IIS e i added a new Virtual Directory pointing to the second website folder, wich is inde the primary folder.

     

    The problem is i can only acess my second website by localhost  (http://localhosy/mysecondwebsite/) and not trough the domain: www.myprimarywebsite.com/MySecondWebsite/

     How can i do that?

  • 07-15-2008, 12:31 AM In reply to

    Re: Running ASP website inside of another...

    What error do you get?  It shouldn't matter unless you have some type of custom app requirements having an issue.

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 07-15-2008, 3:36 AM In reply to

    • soupapes
    • Not Ranked
    • Joined on 07-14-2008, 6:28 PM
    • Posts 8

    Re: Running ASP website inside of another...

    When i try to access using the domain just gives the normal error:

     Not Found. The requested URL was not found on this server.

  • 07-15-2008, 4:46 AM In reply to

    Re: Running ASP website inside of another...

    look at the iis log files.

    You will see what page it is trying to get to and the http status code error.

     

    Can you access static content in this new vd?

    I suspect you have set it up wrong. Try creating another virtual directory with just a html file in it. Don't complicate matters at this stage make sure you can setup a virtual directory and understand how that works.

    Follow this guide:

    http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/5adfcce1-030d-45b8-997c-bdbfa08ea459.mspx?mfr=true


  • 07-15-2008, 8:53 AM In reply to

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

    Re: Running ASP website inside of another...

    soupapes:
    So i placed my second website folder, inside the folder of the primary web server.
    Perfect!  So you must have something like C:\inetpub\wwwroot\MySecondWebsite.

    soupapes:
    Then, i went to the IIS e i added a new Virtual Directory pointing to the second website folder, wich is inde the primary folder.
    Why?  A virtual directory is only needed when you have content outside the root path.  Remove the virtual directory and just make sure that your new folder is set as an application.

  • 07-15-2008, 9:23 AM In reply to

    • soupapes
    • Not Ranked
    • Joined on 07-14-2008, 6:28 PM
    • Posts 8

    Re: Running ASP website inside of another...

    Its now working. Thanks for your replys.

     It was a configuration problem.

     

Page 1 of 1 (6 items)
Microsoft Communities