httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Cohen" <apa...@gej-it.com>
Subject RE: [users@httpd] CGI problem with mod_userdir
Date Thu, 30 Jan 2003 00:43:26 GMT
Let me ask you one more thing, when you are trying to serve the pages, do
you go to http://www.domain1.com/~user_name/ or how?

Jeff Cohen

> -----Original Message-----
> From: Shawn Wilson [mailto:shawnw@atmreports.com]
> Sent: Wednesday, January 29, 2003 7:32 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] CGI problem with mod_userdir
> 
> Thanks I didn't think of that... but no it still doesn't work.
> 
> Is this an issue with mod_userdir in Apache 2.0 or a stupid
> configuration problem on my part? It all worked fine back in 1.3.
> 
> -shawn
> 
> Jeff Cohen wrote:
> > Instead of doing:
> > UserDir public_html
> > Try doing:
> > UserDir /home/*/public_html
> >
> > That should work.
> >
> > All the best,
> > Jeff Cohen
> >
> >
> >
> >>-----Original Message-----
> >>From: Shawn Wilson [mailto:shawnw@atmreports.com]
> >>Sent: Wednesday, January 29, 2003 7:16 PM
> >>To: users@httpd.apache.org
> >>Subject: Re: [users@httpd] CGI problem with mod_userdir
> >>
> >>Okay, after some further testing I have a very simple test that I wonder
> >>if others can verify the same results or could detail why this occurs.
> >>
> >>So... I have a file /home/lannocc/public_html/test.cgi that executes
> >>just fine. Modifying ONLY my httpd.conf I can do the following which
> >>WORKS:
> >>
> >>--- Begin working config ---
> >>UserDir disable
> >>Alias /~lannocc /home/lannocc/public_html
> >><Directory /home/lannocc/public_html>
> >>     Options ExecCGI
> >></Directory>
> >>--- End working config ---
> >>
> >>The script works fine.
> >>
> >>But... if I simply change the UserDir directive and remove the Alias
> >>definition it no longer works:
> >>
> >>--- Begin bad config ---
> >>UserDir public_html
> >><Directory /home/lannocc/public_html>
> >>     Options ExecCGI
> >></Directory>
> >>--- End bad config ---
> >>
> >>Now I get the Server Error 500 - Premature end of script headers... blah
> >>blah blah. I know the UserDir is working because I can access other
> >>non-cgi files just fine.
> >>
> >>PLEASE - tell me I'm just doing something stupid... I can't figure out
> >>why this doesn't work!
> >>
> >>Thanks,
> >>-shawn
> >>
> >>Shawn Wilson wrote:
> >>
> >>>Hello,
> >>>
> >>>I'm using httpd-2.0.40-11 I'm using mod_userdir to configure user
> >>>public_html directories. The problem I'm running into is trying to
> allow
> >>>the execution of CGI scripts in those directories. A VERY simple script
> >>>which works in the normal web root does not work in the user's
> directory
> >>>even though I have ExecCGI enabled for both. All I get in my server
> logs
> >>>is "Premature end of script headers" which usually implies an error
> >>>running the script. However, I know the script works because I can move
> >>>it elsewhere and it executes fine.
> >>>
> >>>Here's a sample from my httpd.conf:
> >>>-------------------------------------
> >>><Location />
> >>>    Options ExecCGI
> >>></Location>
> >>>
> >>>UserDir public_html
> >>><Directory /home/*/public_html>
> >>>    Options ExecCGI
> >>></Directory>
> >>>---------------------------------------
> >>>
> >>>I can change my <Location> tags to <Directory> tags and vice-versa
> >>>(changing the paths too) and the results are the same... it works for
> >>>"/" but not "/home/*/public_html".
> >>>
> >>>Here's my CGI script:
> >>>----------------------------------------
> >>>#!/usr/bin/perl
> >>>
> >>>print "Content-type: text/html\r\n\r\n";
> >>>print "Script testing!";
> >>>------------------------------------------
> >>>
> >>>And here's the error from my error log when it fails:
> >>>------------------------------------------------------
> >>>[Wed Jan 29 14:17:32 2003] [error] [client 63.168.208.34] Premature end
> >>>of script headers: test.cgi
> >>>------------------------------------------------------
> >>>
> >>>I've checked permissions, execute bit, etc. and it all seems to be set
> >>>okay. It's just a matter of the file being in /home/*/public_html (and
> >>>served through mod_userdir) vs. /var/www/blahblah. Is this a
> mod_userdir
> >>>issue? Any help would be appreciated.
> >>>
> >>>Thanks,
> >>>-shawn
> >>>
> >>
> >>--
> >>====================================
> >>Shawn Wilson [shawnw@atmreports.com]
> >>Software Developer, ATMReports.com
> >>PH: 877-327-0873, FAX: 406-294-5806
> >>====================================
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
> 
> --
> ====================================
> Shawn Wilson [shawnw@atmreports.com]
> Software Developer, ATMReports.com
> PH: 877-327-0873, FAX: 406-294-5806
> ====================================


---------------------------------------------------------------------
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