Discussion:
accessing folder outside the web folder(virtual directory)
(too old to reply)
vips
2005-06-20 14:12:59 UTC
Permalink
I have an image folder which need to be place outside the root of my web
folder.
but still I need to pull the images using relative path to display on my
website ...

how should I do this ??

How can I set the virtual path for the image files in the folder outside my
root web folder ?

I need it so that client can access the image folder manually as well as
using my web application.

any solution ?


Vips
Kristofer Gafvert [MVP]
2005-06-20 15:50:40 UTC
Permalink
Create a virtual directory pointing to the folder. The wizard will help
you.
Post by vips
How can I set the virtual path for the image files in the folder outside my
root web folder ?
Not sure i follow this. What is a virtual path? Where do you set this
"virtual path"?
--
Regards,
Kristofer Gafvert (IIS MVP)
www.gafvert.info - My Articles and help
www.ilopia.com
Post by vips
I have an image folder which need to be place outside the root of my web
folder.
but still I need to pull the images using relative path to display on my
website ...
how should I do this ??
How can I set the virtual path for the image files in the folder outside my
root web folder ?
I need it so that client can access the image folder manually as well as
using my web application.
any solution ?
Vips
Alok Kumar
2005-06-20 16:19:05 UTC
Permalink
You can create a virtual directory. i.e. if your document root is
c:\inetpub\wwwroot\ and then images directory is c:\images then you can
create a "virtual directory" in IIS called "images" and then point it to
c:\images. Remember to add iusr_xxx account to this c:]images directory. Now
you can use <img src="/images/..."> wiin your web site.

Alok
Post by vips
I have an image folder which need to be place outside the root of my web
folder.
but still I need to pull the images using relative path to display on my
website ...
how should I do this ??
How can I set the virtual path for the image files in the folder outside my
root web folder ?
I need it so that client can access the image folder manually as well as
using my web application.
any solution ?
Vips
Loading...