Dear my friends...
I found that my perl cgi script only run if they're placed into /srv/www/cgi-bin.
Could I have some other locations for keeping and running my perl cgi script by my apache2?
ScriptAlias /cginya/ /srv/www/htdocs/klien/beol/cgi-bin
Dear my friends...
I use opensuse10.2.
I am developing a website using perl for it cgi. This is the firsttime for me to use perl for website application. I've installed perl::CGI and create a very simple script as the very first step: " #!/usr/bin/perl print "Content-type: text/html"; print "<html>"; print "<head>"; print "<title>"; print "Try if the webserver understand my perl CGI"; print "</title>"; print "</head>"; print "<body>"; print "tes dulu"; print "</body>"; print "</html>"; ". But my apache2 does not understand my perlscript.
I put the script (index.cgi) under /srv/www/htdocs/klien/boel/cgi-bin so the url of my first perl cgi script (index.cgi) is: http://127.0.0.1/klien/beol/cgi-bin/index.cgi .
I tried to find the solution by looking up on my perl book. I found about ScriptAlias. So I add this lines into the "httpd.conf": ScriptAlias /cgi-bin/ /srv/www/htdocs/klien/beol/cgi-bin
Options ExecCGI </Directory> If I restart the apache2 I get this error message: " suseonthelap:/etc/apache2 # rcapache2 restart [Fri Sep 21 20:56:08 2007] [warn] The ScriptAlias directive in /etc/apache2/httpd.conf at line 215 will probably never match because it overlaps an earlier ScriptAlias. Syntax OK Shutting down httpd2 (waiting for all children to terminate) done Starting httpd2 (prefork) [Fri Sep 21 20:56:11 2007] [warn] The ScriptAlias directive in /etc/apache2/httpd.conf at line 215 will probably never match because it overlaps an earlier ScriptAlias. done suseonthelap:/etc/apache2 "
Please tell me what I should do to make my apache2 understand the perl cgi script.
Thank you very much in advance. -- Patrik Hasibuan
Junior Programmer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
--
Patrik Hasibuan