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

    Join Date
    Oct 2004
    Posts
    1
    Rep Power
    0

    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.

    PLEASE HELP ASAP

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

    Join Date
    Jun 2003
    Posts
    14,439
    Rep Power
    4539
    Best is just get a server OS and then you can create multiple websites for development.
    ======
    Doug G
    ======
    Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
    --Alfred Bester

IMN logo majestic logo threadwatch logo seochat tools logo