CGI - Fehler_log

Alles, was den Apache betrifft, kann hier besprochen werden.

CGI - Fehler_log

Postby Andreas Erdeli » 19. January 2004 11:06

Hallo,

ich möchte gerne cgi-Script aus meinem HOME-Verzeichnis aufrufen können.

Dafür habe ich der httpd.conf folgendes geändert:

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"

ScriptAlias /cgi-bin/ "/home/andy/public_html/"
<IfModule mod_perl.c>
# Provide two aliases to the same cgi-bin directory,
# to see the effects of the 2 different mod_perl modes.
# for Apache::Registry Mode

ScriptAlias /perl/ "/srv/www/cgi-bin/"

ScriptAlias /perl/ "/home/andy/public_html/"


# for Apache::Perlrun Mode

ScriptAlias /cgi-perl/ "/srv/www/cgi-bin/"

ScriptAlias /cgi-perl/ "/home/andy/public_html/"
</IfModule>
#
# "/srv/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
#"/srv/www/cgi-bin" werden sein ändern gegen alles Ihre ScriptAlias
# CGI Verzeichnis bestehen, wenn Sie haben das konfiguriert

<Directory "/srv/www/cgi-bin">
AllowOverride None
# Options None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

<Directory "/home/andy/public_html/">
AllowOverride None
Options ExecCGI
SetHandler cgi-script
</Directory>


</IfModule>
# End of aliases.


#
# set /cgi-bin for CGI execution
#
<Location /cgi-bin>
AllowOverride None
Options +ExecCGI -Includes
SetHandler cgi-script
</Location>

<Location /home/andy/public_html>
AllowOverride None
Options +ExecCGI -Includes
SetHandler cgi-script
</Location>


Es gibt aber trotzdem eine Fehlermeldung im error_log:

[Mon Jan 19 11:05:08 2004] [error] [client 192.168.0.195] Options ExecCGI is off in this directory: /home/andy/public_html/zaehler.pl, referer: http://192.168.0.192/~andy/testperl1.html

Was mache ich falsch :?:

Gruss
Andreas
Andreas Erdeli
 
Posts: 5
Joined: 17. January 2004 18:22

Return to Apache

Who is online

Users browsing this forum: No registered users and 6 guests