Discussion Locked

Root of a Virtual Directory on IIS 4.0

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I've added a Virtual Directory under my Defualt Web Site in IIS 4.0. The .asp files that this virtual directory is pointing to was written with RELATIVE paths...so when one of the .asp pages looks for /login.asp, it's traversing all the way to the root of the default web site, not the root of the Virtual Directory.

Is there a way to solve this without having to re-write all the .asp pages to point to REAL paths? Maybe something in the GLOBAL.ASA file that sets the root?

3 replies

by binarysleeper

i think if you use ./page.asp it should work. Test it on one file and use a global search and replace tool if it works.
HTH

by ashley.hardesty

Unfortunately, not all files reside one level up from the existing page...so thei would still require editing the entire set of .asp pages.

by jesperm

When you created the virtual directory, did you also setup the share properties of th folder in windows explore on the server.

When you have set the virtual directory in IIS, locate the directory in Windows Explore, view the properties and selectthe 'web share' tag, there select 'share this folder' option, add in a alias for the folder like "/myshare" and apply

Then any files in that folder should now be avaliable using /Myshare/filename form any web page on the server.

You may need to re-set the virtual directory in IIS.

This discussion is closed to new replies.