Thread cgi-Skript am Desktop testen (2 answers)
Opened by gast at 2009-04-20 11:44

Gast gast
 2009-04-20 11:44
#120761 #120761
Hi!

Wie kann ich mein kleines cgi-Skript am Desktop testen?
Was ich bisher gemacht habe:
Apache2 installiert und "etc/apache2/httpd.conf" so ediert

Quote
forbid access to the entire filesystem by default
<Directory />
Options None
AllowOverride None
Order deny,allow
Deny from all
</Directory>

##### hinzugefügt
<Directory /home/*/public_html>
Options +ExecCGI
AddHandler cgi-script .cgi .pl
</Directory>
#####

# use .htaccess files for overriding,
AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>


Mein Skript befindet sich in ~/public_html.

Wenn ich es versuche mit 'http://localhost/home/my_home/public_html/Test.cgi' aufzurufen, bekomme folgende Fehlermeldung:

Quote
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
Mon Apr 20 11:36:42 2009
Apache/2.2.10 (Linux/SUSE)


Was muss ich noch ändern?

View full thread cgi-Skript am Desktop testen