httpd.conf auszug
Code: Alles auswählen
#--------Python script settings-----------------------------------------------
ScriptAlias /cgi-python/ "/home/robert/development/python/cgi-bin/"
AddHandler python-script .py .pyc .pyo
Action python-script "/cgi-python/python"
<Directory "/home/robert/development/python/cgi-bin/">
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Directory>
#--------PHP script settings--------------------------------------------------
ScriptAlias /cgi-php/ "/home/robert/development/php/cgi-bin/"
AddType php-script .php .php3 .php4
Action php-script "/cgi-php/php"
<Directory "/home/robert/development/php/cgi-bin/">
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Directory>
#--------TCL script settings--------------------------------------------------
ScriptAlias /cgi-tcl/ "/home/robert/development/tcl/cgi-bin/"
AddType tcl-script .tcl
Action tcl-script "/cgi-tcl/tclsh"
<Directory "/home/robert/development/tcl/cgi-bin/">
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Directory>
Das log dazu sieht folgendermaßen aus:
Code: Alles auswählen
[Sat Apr 05 14:30:14 2003] [error] [client 127.0.0.1] Premature end of script headers: python
Code: Alles auswählen
[Sat Apr 05 14:54:38 2003] [error] [client 127.0.0.1] Premature end of script headers: tclsh
Code: Alles auswählen
print "Content-type: text/html \n\n"
print "cgi is running"
Ich habe langsam keine Ideen mehr wo es liegen könnte. Es scheint als würden die Interpreter den Dateipfad nicht auflösen können oder so etwas in dieser Richtung.