How do I reference a file outside my web site’s root directory?
For example my website is located at C:\dev\TestSite
I am using ASP.NET with XSP. The webapp will be deployed on Apache using mod_mono.
I have images in C:\images and I would like to do this:
<img src="C:\images\logo.gif"/>
Your
imgtag’ssrcvalue is going to be sent to the client. You need to specify those paths relative to your document root. Your best bet is to set up a virtual folder (in IIS, alias is the apache equivalent) to point to thec:\imagespath and then change the mentioned tagsrcpath as followsTo do this in apache, you need an alias in your httpd.conf. The line looks like this
Here’s the docs http://httpd.apache.org/docs/2.0/mod/mod_alias.html#alias