I have set up iis5.1 on localhost.
Graphics files outside of my virtual directory wont load.If i browse to the
file with IE ,no problem.What am i doing wrong?
Ive tried "../blah/A.jpg"
and "/blah/A.jpg"
and "blah/A.jpg"
but nothing .....
blah is sibling of the main virtual directory.

Re: Simple question by Kristofer

Kristofer
Mon Apr 26 02:57:01 CDT 2004

Are you saying that the image file is located outside the webroot? It must
be located in a folder that the webserver can serve. Otherwise, nothing
stops hackers from accessing your whole harddrive, using the same technique
as you do.

--
Regards,
Kristofer Gafvert


"Mike" <ampeloso@verizon.net> wrote in message
news:DxYic.36103$635.8594@nwrdny03.gnilink.net...
> I have set up iis5.1 on localhost.
> Graphics files outside of my virtual directory wont load.If i browse to
the
> file with IE ,no problem.What am i doing wrong?
> Ive tried "../blah/A.jpg"
> and "/blah/A.jpg"
> and "blah/A.jpg"
> but nothing .....
> blah is sibling of the main virtual directory.
>
>



Re: Simple question by Mike

Mike
Mon Apr 26 05:28:02 CDT 2004

Kristofer,
That's what I thought.
Thanks
"Kristofer Gafvert" <kgafvert@NEWSilopia.com> wrote in message
news:uCnEPQ2KEHA.1764@TK2MSFTNGP12.phx.gbl...
> Are you saying that the image file is located outside the webroot? It must
> be located in a folder that the webserver can serve. Otherwise, nothing
> stops hackers from accessing your whole harddrive, using the same
technique
> as you do.
>
> --
> Regards,
> Kristofer Gafvert
>
>
> "Mike" <ampeloso@verizon.net> wrote in message
> news:DxYic.36103$635.8594@nwrdny03.gnilink.net...
> > I have set up iis5.1 on localhost.
> > Graphics files outside of my virtual directory wont load.If i browse to
> the
> > file with IE ,no problem.What am i doing wrong?
> > Ive tried "../blah/A.jpg"
> > and "/blah/A.jpg"
> > and "blah/A.jpg"
> > but nothing .....
> > blah is sibling of the main virtual directory.
> >
> >
>
>



RE: Simple question by tdevere

tdevere
Sat Jun 05 17:03:50 CDT 2004

Hello Mike,

When you say they won't load, what is the resulting error?

Have you checked your IIS Logs to see what the exact http error return is?

Make sure to turn off HTTP friendly error messages when you browse.

When did this start happening?

What changed?

Does this happen on any other web sites?

Check your event logs :)

Are there script mappings for .jpg's?



Thank you,

Tony DeVere [MSFT]
Microsoft IIS
Newsgroup Support
tdevere@online.microsoft.com

"Please do not send email directly to this alias. This is our online
account name for newsgroup participation only."

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2001 Microsoft Corporation. All rights
reserved.