www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Shawn Carnley <Shawn.Carn...@usm.edu>
Subject mod_cgi/8266: User space CGIs fail, but work elsewhere
Date Wed, 29 Aug 2001 18:21:31 GMT

>Number:         8266
>Category:       mod_cgi
>Synopsis:       User space CGIs fail, but work elsewhere
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Aug 29 11:30:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Shawn.Carnley@usm.edu
>Release:        1.3.19, 1.3.20
>Organization:
apache
>Environment:
Redhat Linux 7.1 fully patched.
2.4.3-12 Kernel i686 PII 450mghz
Apache 1.3.19 Redhat RPM and
Apache 1.3.20 compiled from Redhat SRPM
>Description:
CGIs located in a user's web space (http://someserver.com/~username/ascript.cgi)
will return a 500 internal server error.  The err_log will return Premature end of script
headers.  I know this sounds like a misconfiguration of the config file or bad permssions
but it's not. Here's an excerpt of my config for users.
--------cut------------
UserDir www

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#

<Files *.cgi>
 Options +ExecCGI
</Files>

<Directory ~ "/websites/dept/[a-z]+/www/[a-z]+">
 AllowOverride All
 Options multiViews indexes symLinksIfOwnerMatch includesNoExec +ExecCGI
 IndexOptions +FancyIndexing +NameWidth=*
</Directory>
---------end cut---------------

This should allow CGIs to run, but they fail everytime.  I can move the cgi to the root of
the server (http://server.com/ascript.cgi) and it will run fine.
>How-To-Repeat:
Configure apache to run user space CGIs and watch it fail.  
---Example failed script---
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "WTF?\n"
EOF
------end script------
will fail
>Fix:
I'm totally at a loss, It's possible that I've misconfigured something but I'm not sure what,
I've tried this on multiple machines all with the same result.  It may be a problem with the
redhat RPMs. Please advise.  thank you.
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]
 
 


Mime
View raw message