1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2004
    Rep Power

    IIS / include virtual path problems

    When using include virtual statments on the remote server there is no problem, but when viewing on the local server the path to the include file is incorrect and in return, sends me a 500 error.

    <!--#include virtual="/includes/settings.asp"-->

    It is impossible for me to have to change the virtual paths on the files residing on the testing server to the paths that will work on the remote server everytime I upload a file. I need to develop a uniform include statement that will work on the testing server and remote server.

    I have tried variations of all paths but nothing will work because the root directory is interpreted different by the servers.
    Basically, I need to know how to make mulitple webroots in IIS, or how to define a folder as being the root of the site rather than the localhost as the root.


  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Rep Power
    Best is just get a server OS and then you can create multiple websites for development.
    Doug G
    I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton

IMN logo majestic logo threadwatch logo seochat tools logo