Tags:
create new tag
, view all tags

Question

For some reason images aren't being displayed on my TWikiSite. The site is actually a "clone" or backup of an existing site, which works perfectly. The only problem with the clone is that images will not load on any pages.

One thing I noticed was that my Apache access_log contains strange entries like (IPs and hostnames altered):

169.226.xxx.xxx - - [30/Jan/2004:13:15:26 -0500] "GET /twikidupe/bin/oops/pub/wikiHome/gif?template=oopsnoweb HTTP/1.1" 200 4711 "http://insert.hostname.here:8888/twikidupe/bin/testenv" "Mozilla/4.0 (compatible; MSIE 6.0; X11; Linux i686) Opera 7.23  [en]"

This entry refers to the testenv page, which should be loading the image "/twikidupe/pub/wikiHome.gif".

Please see my current TWiki.cfg file and the output of testenv.

There must be something simple I'm missing...

TIA!

KathyMontgomery

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, GnuSkinPlugin, InterwikiPlugin, SmiliesPlugin, TigerSkinPlugin, TocPlugin
Server OS: Mandrake Linux 9.2
Web server: Apache-AdvancedExtranetServer/2.0.48
Perl version: 5.8.2
Client OS: Windows XP, Mandrake Linux 9.2
Web Browser: Opera 7.23 (Win/Linux); Firebird 0.6.1 (Linux)

-- KathyMontgomery - 30 Jan 2004

Answer

Kathy - I've looked over your config file and testenv output and all your paths appear correct, at least consistent. I would check next whether the pub directory is actually where the config file says it is and that it has proper permissions. I attempted to manually enter the url for your pub directory (just to see what would happen) and was sent to an opps page saying that the "pub/wikiHome/gif" did not exist (similar to the log you mentioned above). This is definitely odd and points to something off about the pub folder. Is there a htaccess file in it with a redirect?

-- LynnwoodBrown - 31 Jan 2004

Ah, it looks like it was an errant Apache config setting.

In order to direct http://hostname:port/twikidupe/ to the Main.WebHome page, and not the bland index.html page, I tried to do the following:

Alias /twikidupe/ "/var/www/html/twikidupe/bin/view/"

That accomplished the objective, but broke all the images. So I changed the above to the correct

Alias /twikidupe/ "/var/www/html/twikidupe/"

And instead opted to put a .htaccess file in the server root containing the line:

Redirect /twikidupe/index.html http://hostname:port/twikidupe/bin/view

-- KathyMontgomery - 02 Feb 2004

Topic attachments
I Attachment Action Size Date Who Comment
Unknown file formatcfg TWiki.cfg manage 20.8 K 2004-01-30 - 19:17 TWikiGuest my current TWiki.cfg file
HTMLhtml testenv-output.html manage 11.5 K 2004-01-30 - 19:18 TWikiGuest output of testenv script
Topic revision: r3 - 2004-02-02 - TWikiGuest
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.