Apache Server configuration support - Re: Link to local file doesn't work when accessed through server.

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > May 2006 > Re: Link to local file doesn't work when accessed through server.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Link to local file doesn't work when accessed through server.
Mumia W.

2006-05-29, 5:40 pm

wylbur37 wrote:
> [...]
> file:///C:/html/simple.htm
>
> When the page was displayed, I then clicked on the Picture link, and
> the
> image file (xyz.jpg) was displayed in the browser window (as expected).
>
> However, if I copy the simple.htm file to the server's document root
> and then access the file THROUGH THE SERVER by the following URL ...
>
> http://localhost/simple.htm
>
> and then I click on the Picture link, nothing happens! [...]


This is a security constraint in Mozilla. Web pages on the Internet are
not allowed to access files on the user's system, and if the page came
through HTTP, it's assumed to have come from the Internet.

Place the image under the document root just as Tim Berners-Lee intended
you to.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com