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
--
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