Hello Hugo,
I'm having a hard time configuring Hiawatha for serving TWiki and TRAC on our company's intranet server.
They both are written as cgi scripts with no extensions, and parameters in URL after a slash.
For example, this works:
http://intranet/cgi-bin/twiki/view
Link like this causes a 404 error:
http://intranet/cgi-bin/twiki/view/Main/WebHome
The actual CGI script here is of course
view.
The server configuration is as follows
(Shortened, one VirtualHost served on port 443 left out):
# GENERAL SETTINGS
ServerId = www-data
ConnectionsTotal = 1500
ConnectionsPerIP = 100
SocketSendTimeout = 30
SystemLogfile = /var/log/hiawatha/system.log
GarbageLogfile = /var/log/hiawatha/garbage.log
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
# BINDING SETTINGS
Binding {
Port = 80
MaxKeepAlive = 300
TimeForRequest = 30,100
MaxUploadSize = 16
}
# BANNING SETTINGS
BanOnMaxPerIP = 20
BanOnFlooding = 25/2:30
BanOnWrongPassword = 3:30
# COMMON GATEWAY INTERFACE (CGI) SETTINGS
CGIhandler = /usr/bin/python:py
CGIhandler = /usr/bin/perl:pl
CGIhandler = /usr/bin/php-cgi:php,php4,php5
CGIextension = cgi
KillTimedoutCGI = yes
NoExtensionAs = cgi
VirtualHost {
Hostname = intranet
WebsiteRoot = /data/intranet
StartFile = index.php
RequireSSL = no
ShowIndex = no
SecureURL = no
FollowSymlinks = yes
TimeForCGI = 120
ExecuteCGI = yes
EnablePathInfo = yes
Alias = /intranet:/data/intranet
Alias = /phpmyadmin:/usr/share/phpmyadmin
Alias = /cgi-bin:/usr/lib/cgi-bin
}
I found similar issues here
http://www.hiawatha-webserver.org/forum/topic/514and here
http://www.hiawatha-webserver.org/forum/topic/269, but that doesn't work for me.
As you can see, there is EnablePathInfo directive present, but of course that doesn't apply without extensions.
Is there a possibility to execute these CGI scripts directly, without FastCGI?
If not, how the configuration should look like? TWiki is written in PERL, and TRAC is written
in Python. Clearly, I'd like to avoid the hassle with setting FastCGI servers for that.
NOTE:
I just tried to create a link to
view called
view.cgi, and I get the same error 404 for
http://intranet/cgi-bin/twiki/view.cgi/Main/WebHome. Maybe I misconfigured something, could you point
me to the right direction?
Thanks.
Hiawatha Version: 7.3
OS: Ubuntu 8.04.3 LTS Server