[wellylug] Configuring web site files to display images correctly

Cliff Pratt enkidu at cliffp.com
Wed Dec 6 09:03:51 NZDT 2006


John Durham wrote:
> After trying to get images to display from my server for a couple of
> days, it seems I must be missing something important. Whether it is in
> the server configuration or the html code is hard to say. I've compared
> my html with what appeared on Jethro's website (it appears to be
> structurally similar and correct), I'm now wondering if there are any
> other config files unknown to me that require editing to get the site to
> find its images when visited by the public?
> 
> Below is a sample of the html that contains an image, but doesn't
> display it:
> <center><br><img src="/images/ruler.gif" height=31 width=500
> alt="ruler">
> 
> This could be a difference between configuration of the web files for
> use on a Ubuntu Linux server and the previous (windows server). What
> could I be missing, guys?
 >
is the /images directory located in the document root directory? In 
other words, if your document root is /var/www are the images in 
/var/www/images? If not you will have to use a <directory> or <location> 
stanza to tell the web server where the images directory exists and 
where it fits into the hierarchy.

It would be useful if you could show us the site definitions from your 
Apache (I presume) conf.

Cheers,

Cliff




More information about the wellylug mailing list