httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Greenlees" <ja...@x-mail.net>
Subject Re: [users@httpd] CGI problem
Date Fri, 07 Feb 2003 22:22:41 GMT
Quoting Gary Turner <kk5st@sbcglobal.net>:

> Bob Bomar wrote:
>
> >I am running Apache 1.3.27 on a FreeBSD 4.7 Server. When I go to 
> >/cgi-bin/ from the web, I get a 500 error.  When I run the script
> >from the command line, it works fine, with the header and all.
> >I checked my logs and I see this:
> >
> >[Thu Feb  6 21:02:07 2003] [error] [client 192.168.1.13] Premature end of
> s> >cript headers: /dir/to/script/cvsweb.cgi
> >[Thu Feb  6 21:02:43 2003] [error] [client 192.168.1.13] Premature end of
> s> >cript headers: /dir/to/script/cvsweb.cgi
> >[Thu Feb  6 21:02:45 2003] [error] [client 192.168.1.13] Premature end of
> s> >cript headers: /dir/to/script/cvsweb.cgi
>
> I'm no Apache guru, but I play one on TV.  In my limited experience,
> this error has always meant some kind of bug in the script.  Even a
> script that runs from the CLI can cause Apache to choke due to a logic
> error.
well it is a script error right enough, the path to the script for cvs web interface is
throwing the error, may want to look at that.

>
> >
> >here is the relevent portion of the httpd.conf:
> >
> ><VirtualHost *>
> >ServerAdmin bob@bomar.us
> >DocumentRoot /usr/local/www/bob
> >ServerName bob.bomar.us
> >ErrorLog /var/log/bob-error
> >CustomLog /var/log/bob-custom common
> >ScriptAlias /cgi-bin/ "/usr/local/www/bob/cgi-bin/"
>
> It has been pounded into my head that putting executables in a
> browseable directory tree is a Bad Thing (tm).
>
> >#AddHandler cgi-script .cgi
> >#AddHandler cgi-script .pl
> ></VirtualHost>
>
> Do you have
>
> <Directory /usr/local/www/bob/cgi-bin/>
> 	[...]
> 	Options ExecCGI
> 	[...]
> </Directory>
>
> ?
> --
good point.

-------------------------------------------------------------------------------------------
***Protect your PC from local E-Mail Application security holes***
***Maintain your Privacy - Passport Free***
***Anti SPAM "Whitelist" feature***

http://www.x-mail.net Web Based E-Mail, accessible anywhere

Voice Messages, Voice Calls, Live Chat, X-Mail Messenger,
Personal Web Hosting, 128 bit SSL Secure, Calendar, Bookmarks,
Forwarding, Virtual Mail Map Aliasing

X-Mail Premium: 20MB Messages, 100MB Storage, POP3, Ad Free

  



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message