|
|
Question : Perl Script: Server Error 500
|
|
I have problem with "pass.pl" perl script. This Perl script is to verify the username and password from a client browser.
1. If the user input an incorect username or password it will direct the user to the page with reject massege.
2. If you a user input the correct username and password it will direct user to the secured page.
Currently the script "pass.pl" is locate in the /usr/www/cgi-bin directory.
Here is the error message when I tried to submit the form: ---> Server error! The server encountered an internal error and was unable to complete your request.
Error message: Premature end of script headers: pass.pl If you think this is a server error, please contact the webmaster Error 500 rmc-lnxsrv Tue 04 Mar 2003 01:23:33 PM EST Apache/2.0.40 (Red Hat Linux) -->
Is there anyone can help me with this I greatly appreciate your help.
|
Answer : Perl Script: Server Error 500
|
|
Hi!
Well it dosen't look very good, you either do this which work on all apache I have installed: ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
AllowOverride None Order Allow deny allow from all
Or you do this: AddHandler cgi-script .cgi .pl Alias /cgi-bin/ "/var/www/cgi-bin/"
AllowOverride None options +ExecCGI Order Allow deny allow from all
Regards /Hans - Erik Skyttberg
|
|
|
|