[wellylug] Configuring web site files to display images correctly
Alex Thomson
Alex.Thomson at solnetsolutions.co.nz
Wed Dec 6 10:00:43 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
>> 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.
>>
>> Cheers,
>>
>> Cliff
Try 'locate httpd.conf', on Ubuntu this should return:
/etc/apache2/httpd.conf
+ lots of other places....
Attention:
This email may contain information intended for the sole use of
the original recipient. Please respect this when sharing or
disclosing this email's contents with any third party. If you
believe you have received this email in error, please delete it
and notify the sender or postmaster at solnetsolutions.co.nz as
soon as possible. The content of this email does not necessarily
reflect the views of SolNet Solutions Ltd.
More information about the wellylug
mailing list