I need to set up a virtual directory in IIS 7 that will point to the root of a website on our server. Here is an example of the structure:
Websites:
|
--- AssetsServer
| - /images/
| - /css/
| - etc.
|
--- demoserver
- assets (this virtual directory points to "AssetsServer")
Within demoserver's HTML, I have code for an image that should target the images folder within "AssetsServer":
<img src="/assets/images/logos/my-logo.png" alt="My Logo">
However, when viewed in the browser, the URL appears as:
http://www.mysite.com/assets/images/logos/my-logo.png
It seems like it should be targeting the virtual directory correctly, but I am getting a 500 error. I believe there may be a configuration setting that needs adjustment. When I change the virtual directory to point directly to "AssetsServer\images\" and update the HTML code accordingly, the image displays properly.
The reason I want the virtual directory to point to the root of "AssetsServer" is so I can access stylesheets or images without creating multiple virtual directories specific to each folder.
I am new to ASP and apologize if this question has been asked before. I've tried searching, but my lack of experience with the terminology might be slowing me down.
Thank you.