httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Buck Golemon <>
Subject [users@httpd] UserDir + SetHandler cgi-script broken? (Apache 2.0.52)
Date Fri, 23 Jan 2009 01:16:18 GMT
I've already posted this on alt.apache.configuration, but this forum seems much 
more active. I'm sorry if this is double-posting. I'm not sure of the 

I can't get "SetHandler cgi-script" to work from inside a UserDir. If 
I try to access the exact same cgi script using an "Alias", it works 

works just fine: 

doesn't work: 

Here's the relevant configuration. I plan on changing 'bgolemon' to * once I 
get this working, so a ScriptAlias wouldn't work here. Please don't worry about 
security just yet. 
<IfModule mod_userdir.c> 
    UserDir public_html 
    UserDir disabled root 
Alias /beg/ "/user/bgolemon/public_html/" 
<Directory "/user/bgolemon/public_html/"> 
    Options ExecCGI 
    SetHandler cgi-script 
    AllowOverride None 
    Allow from all 
    Order allow,deny 

Here is the error_log for when I try to access ~bgolemon/ 
[Thu Jan 22 14:04:34 2009] [error] [client] Premature end of 
script headers: 

I also took a look at the ScriptLog. It looks like the script doesn't run at 
all. The result is basically the same with all browsers: 
%% [Thu Jan 22 13:55:32 2009] GET /~bgolemon/ HTTP/1.1 
%% 500 /user/bgolemon/public_html/ 
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) 
AppleWebKit/525.19 (KHTML, like Gecko) Chrome/ Safari/525.19 
Accept: text/xml,application/xml,application/xhtml+xml,text/ 
Accept-Encoding: gzip,deflate,bzip2,sdch 
X-SDCH: Chrome 
Accept-Language: en-US,en 
Accept-Charset: ISO-8859-1,*,utf-8 
Connection: Keep-Alive 
(end of file) 

In case you want to know, here's the code for 
echo Content-Type: text/plain 
echo foo 

Are there any known issues with this? How can I get this to work? This makes me 
feel like either the cgi-script handler or the UserDir module is broken. 

Thanks in advance,

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message