Spudhead
04-19-2006, 12:00 PM
I really should understand this. But I don't. Can anyone gently nudge me towards a basic grasp?
So; my desktop dev machine. XP Pro running IIS 5.1.
I've got a load of dev sites all dumped in various folders under wwwroot. Let's say, for example, "C:\Inetpub\wwwroot\myDevSite"
I go into IIS and, under "Default Web Site", create a new virtual directory that points at the above... err... "real" directory. Let's give it an application name, "DevSite1".
So, I go to http://localhost/DevSite1 and there's my site. Woohoo. It's got a global.asa in the "myDevSite" folder which is being parsed correctly, so the thing is definitely running as an application, or a virtual dir, or whatever you want to call it.
Now, let's say I put a file in the myDevSite folder containing the following: <a href="/dir/file.html">link</a>. My understanding was that prefixing URL's with a forward slash meant "go from the root" - but I appear to be mistaken about what the "root" actually is. In the example above, I'd expect that to look for C:\Inetpub\wwwroot\myDevSite\dir\file.html, but actually it looks for C:\Inetpub\wwwroot\dir\file.html. This is not good. I don't understand. Please help me :(
So; my desktop dev machine. XP Pro running IIS 5.1.
I've got a load of dev sites all dumped in various folders under wwwroot. Let's say, for example, "C:\Inetpub\wwwroot\myDevSite"
I go into IIS and, under "Default Web Site", create a new virtual directory that points at the above... err... "real" directory. Let's give it an application name, "DevSite1".
So, I go to http://localhost/DevSite1 and there's my site. Woohoo. It's got a global.asa in the "myDevSite" folder which is being parsed correctly, so the thing is definitely running as an application, or a virtual dir, or whatever you want to call it.
Now, let's say I put a file in the myDevSite folder containing the following: <a href="/dir/file.html">link</a>. My understanding was that prefixing URL's with a forward slash meant "go from the root" - but I appear to be mistaken about what the "root" actually is. In the example above, I'd expect that to look for C:\Inetpub\wwwroot\myDevSite\dir\file.html, but actually it looks for C:\Inetpub\wwwroot\dir\file.html. This is not good. I don't understand. Please help me :(