On Sat, 29 Aug 1998, Greger Haga wrote:

> Hi!
> IIRC That is the response you get when you output a page from a cgi script
> that is not a page. You need to output more information from the cgi script so
> that the browser can display your output as a html page. Remember that the
> browser expects a page from the server.See attachement.
> 
> _/_/ Greger Haga, [EMAIL PROTECTED] _/_/
> 

You also have to output:
Content-type: text/html

followed by a blank line, before you start sending the html page.
If you don't want to print html, just plain text, output:
Content-type: text/plain

instead.

Frank

> 
> 
> On Sat, 29 Aug 1998, Kjell Midtseter wrote:
> 
> > I can not run perl CGI scripts under my Apache server.
> > 
> > I have the following script called hello.cgi in my CGI-BIN directory:
> > #!/usr/bin/perl
> > print "hello\n"
> > 
> > When I run my browser as
> > lynx http://localhost/cgi-bin/hello.cgi
> > I receive an error message
> > 500 Internal server error. The server encountered an internal error or 
>misconfiguration
> > and was unable to complete your request.
> > 
> > I am using RedHat 5.1 and the Apache that came with the distribution (latest 
>version?)
> > I have been trying to change the applicable things in the srm.conf file, but
> > nothing seems to help.
> > 
> > Any suggestions would be appreciated!
> > 
> > Regards Kjell....
> > 
> 

Reply via email to