I am using Hiawatha version: 7.5
My hiawatha.conf is:
ServerId = www-data
ConnectionsTotal = 150
ConnectionsPerIP = 10
SystemLogfile = /var/log/hiawatha/system.log
GarbageLogfile = /var/log/hiawatha/garbage.log
Binding {
Port = 80
}
CGIhandler = /usr/local/bin/python:py
CGIextension = py
Hostname = 127.0.0.1
WebsiteRoot = /var/www/root
StartFile = index.html
AccessLogfile = /var/log/hiawatha/root_access.log
ErrorLogfile = /var/log/hiawatha/root_error.log
VirtualHost {
Hostname = my.website
WebsiteRoot = /var/www/my_website
StartFile = index.py
AccessLogfile = /var/log/hiawatha/my_website_access.log
ErrorLogfile = /var/log/hiawatha/my_website_error.log
ExecuteCGI = yes
}
My index.py is:
#!/usr/local/bin/python
print "Content-Type: text/html"
print """\
<html>
<head>
<title>My CGI Webpage</title>
</head>
<body>
<h1>Welcome to my CGI webpage.</h1>
</body>
</html>"""
ls -l /var/www/my_website/index.py
-rwxr-xr-x www-data www-data index.py
I've got in the browser "500 - Internal Server Error"
I've got in the my_website_error.log "index.py|no output"
What is going wrong here?
Hugo, can you help?