You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Vishik, Claire" <vi...@tri.sbc.com> on 2001/12/09 07:50:42 UTC

Problem displaying graphics

HI!

I am running apache 1.3.22 on Solaris 2.8 with mod_perl. 

In all the directories, the server refuses to display images producing a
"Forbidden" error "you don't have permissions to access... etc".

The permissions on the directories containing graphics and graphics
themselves are fine. I can view the directory listing from the browser, but
not the files
themselves.

What is the problem?

Thank you in advance,

Claire Vishik
SBC Technology Resources Inc.
512-372-5468 (voice)
512-791-9920 (cell)
vishik@tri.sbc.com

*********************************
	This e-mail and any files transmitted with it are the property of
SBC, are confidential, and are intended solely for the use of the individual
or entity to whom this e-mail is addressed.  If you are not one of the named
recipient(s) or otherwise have reason to believe that you have received this
message in error, please notify the sender at 512 372-5468 and delete this
message immediately from your computer.  Any other use, retention,
dissemination, forwarding, printing, or copying of this e-mail is strictly
prohibited.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Problem displaying graphics

Posted by Owen Boyle <ob...@bourse.ch>.
"Vishik, Claire" wrote:
> 
> HI!
> 
> I am running apache 1.3.22 on Solaris 2.8 with mod_perl.
> 
> In all the directories, the server refuses to display images producing a
> "Forbidden" error "you don't have permissions to access... etc".
> 
> The permissions on the directories containing graphics and graphics
> themselves are fine. I can view the directory listing from the browser, but
> not the files
> themselves.

It sounds like your path to the images directory is incorrect. I find it
is always best to use an absolute path from the doc-root. E.g. If you
have:

DocumentRoot /home/web/html

and the images are in /home/web/html/images, make your <img> tags like:

<img src="/images/banana.gif">

The initial "/" in the path above leads to the doc-root. If you have
src="../images/banana.gif" or something like that, you risk trying to
climb out of the doc-root if you mis-count directory levels or if you
move a file up one level.

Rgds,

Owen Boyle.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org