Question
Forgive me but this is probably more of an Apache support question than a Twiki question, per se. I have
never been able to display any images on my site. I have looked at the question
ImagesNotLoading and I'm sure it's relevant but I am not as familiar with Apache as the person who asked that question - I suspect my Apache config is wrong.
This is what I get when I reload the /twiki/bin/testenv/ page:
192.168.xxx.xxx - - [13/Feb/2004:12:19:11 +0000] "GET /twiki/bin/testenv/ HTTP/1.1" 200 11458
192.168.xxx.xxx - - [13/Feb/2004:12:19:11 +0000] "GET /twiki/pub/wikiHome.gif HTTP/1.1" 404 304
When I go to my main pages at
http://myserver/twiki/bin/view/Main/WebHome
I get this:
192.168.xxx.xxx - - BillBest [13/Feb/2004:12:22:53 +0000] "POST /twiki/bin/save/Main/DesignDocs HTTP/1.1" 302 5
192.168.xxx.xxx - - [13/Feb/2004:12:22:53 +0000] "GET /twiki/bin/view/Main/DesignDocs HTTP/1.1" 200 6735
192.168.xxx.xxx - - [13/Feb/2004:12:22:54 +0000] "GET /twiki/pub/TWiki/TWikiLogos/twikiRobot46x50.gif HTTP/1.1" 404 328
192.168.xxx.xxx - - [13/Feb/2004:12:22:54 +000] "GET /twiki/pub/Main/DesignDocs/cmslogo_infosheets.tif HTTP/1.1" 404 330
192.168.xxx.xxx - - [13/Feb/2004:12:22:54 +0000] "GET /twiki/pub/icn/bmp.gif HTTP/1.1" 404 303
192.168.xxx.xxx - - [13/Feb/2004:12:22:59 +0000] "GET /twiki/bin/view/Main/WebHome HTTP/1.1" 200 12753
192.168.xxx.xxx - - [13/Feb/2004:12:22:59 +0000] "GET /twiki/pub/TWiki/TWikiLogos/twikiRobot46x50.gif HTTP/1.1" 404 328
192.168.xxx.xxx - - [13/Feb/2004:12:22:59 +0000] "GET /twiki/pub/TWiki/TWikiLogos/twikiRobot131x64.gif HTTP/1.1" 404 329
192.168.xxx.xxx - - [13/Feb/2004:12:22:59 +0000] "GET /twiki/pub/Main/WebHome/cmslogo.gif HTTP/1.1" 404 316
192.168.xxx.xxx - - [13/Feb/2004:12:22:59 +0000] "GET /twiki/pub/icn/bmp.gif HTTP/1.1" 404 303
so the twiki/pub path is wrong.
I copied the example httpd.conf entries verbatim from here -
http://twiki.org/cgi-bin/view/TWiki/TWikiDocumentation#TWiki_Installation_Guide
-
Step 1: Create & Configure the Directories:
ScriptAlias /twiki/bin/ "/home/httpd/twiki/bin/"
Alias /twiki/ "home/httpd/twiki/"
<Directory "/home/httpd/twiki/bin">
Options +ExecCGI
SetHandler cgi-script
Allow from all
</Directory>
<Directory "/home/httpd/twiki/pub">
Options FollowSymLinks +Includes
AllowOverride None
Allow from all
</Directory>
<Directory "/home/httpd/twiki/data">
deny from all
</Directory>
<Directory "/home/httpd/twiki/templates">
deny from all
</Directory>
I have left the Apache cgi-bin script aliasing in place - this comes
before the above:
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
<Directory "/usr/local/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
Please see
my current TWiki.cfg file and the
output of testenv - I have removed anything to identify my server.
There is obviously something very simple that I am missing.
TIA
--
BillBest - 13 Feb 2004
Environment
--
BillBest - 13 Feb 2004
Answer
OK, I have fixed this problem now.
What it was, was that I had a crucial slash (/) missing from my config as is
now shown above.
The erroneous line read: Alias /twiki/ "home/httpd/twiki/" which is wrong (/home required).
I
had checked this three times... How annoying. :o)
ScriptAlias /twiki/bin/ "/home/httpd/twiki/bin/"
Alias /twiki/ "/home/httpd/twiki/"
<Directory "/home/httpd/twiki/bin">
Options +ExecCGI
SetHandler cgi-script
Allow from all
</Directory>
<Directory "/home/httpd/twiki/pub">
Options FollowSymLinks +Includes
AllowOverride None
Allow from all
</Directory>
<Directory "/home/httpd/twiki/data">
deny from all
</Directory>
<Directory "/home/httpd/twiki/templates">
deny from all
</Directory>
I have left the Apache cgi-bin script aliasing in place - this comes
before the above:
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
<Directory "/usr/local/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
--
BillBest - 13 Feb 2004