Is it possible to define a virtual directory in IIS and make the files relative to the physical dir
Posted
by Mikey John
on Server Fault
See other posts from Server Fault
or by Mikey John
Published on 2010-05-13T09:06:47Z
Indexed on
2010/05/13
9:14 UTC
Read the original article
Hit count: 321
iis
|iis-manager
Is it possible to define a virtual directory in IIS and somehow make the files in that directory relative to the physical directory and not to the virtual directory ?
For instance on my server I have the following folders: D:\WebSite\Css\myTheme.css, D:\WebSite\Images\image1.jpg
I created a virtual directory on IIS resources.mysite: Inside my website I reference the sheet like this resources.mysite/myTheme.css
But inside myTheme.css I reference pictures from ../Images/images1.jpg.
So the problem is that image1.jpg is not found because it is relative to the physical folder and not the virtual folder on IIS.
Can I solve this problem without modifying the style sheet ?
© Server Fault or respective owner