[wellylug] Configuring web site files to display images correctly

Cliff Pratt enkidu at cliffp.com
Wed Dec 6 18:57:34 NZDT 2006


John Durham wrote:
> Cliff Pratt wrote:
>> 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.
>>
> The images directory is at /var/www/modecideas.com/images
 >
Then you will need a '<Directory>' stanza.
 >
>> It would be useful if you could show us the site definitions from your 
>> Apache (I presume) conf.
 >
> Just tried searching for the .conf file. The search function in Ubuntu 
> seems limited to the currently selected directory. A global search would 
> be far more effective if there is one.
 >
How did you search? On my Ubuntu system I go:

Places--> Search for Files

Up pops a box that has a dropdown for "Look in folder" and I select 
"File System" (which searches the whole file system) or "Other.." which 
allows you to browse to a location to search.

Cheers,

Cliff




More information about the wellylug mailing list