From Bugzilla Helper: User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.3-12smp i686) Description of problem: When I try to run even simple CGIs in a non ScriptAlias'ed directory, I get "Premature end of script headers". I have ExecCGI specified for the directory, and an AddHandler for cgi-scripts. I've included my httpd.conf file and a simple cgi that won't work in my directory. This happened when I upgraded from 7.0 to 7.1. How reproducible: Always Steps to Reproduce: 1. Configure apache to execute ".cgi" files and set the ExecCGI option for a user directory. 2. Write a simple CGI to return Content-type header and some text. 3. Go to http://hostname.domain/~user/foo.cgi. Actual Results: Apache returns a "403: Forbidden", despite all directories in the path being mode 755 and the script itself being mode 755. Expected Results: It should have printed the environment variables. Additional info:
Created attachment 25451 [details] Apache config
Created attachment 25453 [details] Prints environment to stdout
The info here, #bug 47837, fixes your problem most likely.
Turns out to be MIN_GID-blocked by suEXEC. *** This bug has been marked as a duplicate of 47837 ***