Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Debian 3.0
Web server: Apache 1.3.29
Perl version: 5.6.1
Client OS: Windows 2000
Web Browser: Mozilla 1.6

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

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatcfg TWiki.cfg r1 manage 21.2 K 2004-02-13 - 13:01 UnknownUser TWiki.cfg file
HTMLhtm testenv.htm r1 manage 13.1 K 2004-02-13 - 13:01 UnknownUser output of testenv
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2004-02-21 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.