Discovery of the Day

I'm a big fan of virtual directories. I like sharing assets across sites without having to duplicate a bunch of folders. Angela and I were doing some planning for a site and she asked if you created a Virtual Directory in IIS, what would happen if you also had a physical directory of the same name. Well it turns out that if you have a Virtual Directory defined in IIS, the server will completely ignore the contents of any physical directory in the same location. So if you had this:

|--myassets (virtual directory pointing to assets above root)
|--myassets (physical directory on the disk)

Then all files and folders in the physical myassets folder will be completely ignored.

Posted by Daniel Short on Feb 12, 2006 at 12:00 AM | Categories: .NET - ColdFusion - VBScript -