Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl /perl OR #!/usr/bin/perl OR #!/usr/local/bin/perl #use CGI::Carp qw(fatalsToBrowser); #use CGI; #$q = new CGI; #print $q->header(-type=>'text/html',-accept=>'*/*'); #print "Content-type: text/html\n\n"; print <<END; Content-type: text/html <html> </html> END
*****and on the screen (I.E browser window):*****[Fri May 17 15:58:45 2002] [error] [client 12.122. 366.335] Premature end of script headers: /home/virtual/blake/home/htt +pd/cgi-bin/test.cgi
Internal Server Error The server encountered an internal error or misconfiguration and was u +nable to complete your request. Please contact the server administrator, blah@blah.com and inform them + of the time the error occurred, and anything you might have done tha +t may have caused the error. More information about this error may be available in the server error + log.
<VirtualHost 12.34.56.788:80> ServerName www.blah.com ServerAlias blah.com *.blah.com ServerAdmin blah@blah.com DocumentRoot /home/virtual/blake/home/httpd/html User blake Group blake Redirect /admin https://blah.com:19638/webhost/services/virtualhos +ting/siteadmin Redirect /user https://blah.com:19638/webhost/services/virtualhost +ing/useradmin UserDir /home/virtual/blake/home/*/public_html AliasMatch ^/users/([^/]+)/?(.*) /home/virtual/blake/home/$1/publi +c_html/$2 ScriptAlias /cgi-bin/ /home/virtual/blake/home/httpd/cgi-bin/ CustomLog /home/virtual/blake/var/log/httpd/access_log combined ErrorLog /home/virtual/blake/var/log/httpd/error_log <Directory /home/virtual/blake/home/httpd/html/> Allow from all AllowOverride All Order allow,deny Options Includes </Directory> </VirtualHost>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: OK, tell me WHY, this is only a hello world script
by UberDragon13 (Acolyte) on May 17, 2002 at 21:10 UTC | |
by Mr. Muskrat (Canon) on May 18, 2002 at 03:14 UTC | |
Re: OK, tell me WHY, this is only a hello world script
by perlplexer (Hermit) on May 17, 2002 at 20:40 UTC | |
Re: OK, tell me WHY, this is only a hello world script
by lshatzer (Friar) on May 17, 2002 at 20:39 UTC | |
Re: OK, tell me WHY, this is only a hello world script
by Chady (Priest) on May 17, 2002 at 20:40 UTC |