Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 79976 invoked by uid 500); 30 Jan 2003 00:46:19 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 79939 invoked from network); 30 Jan 2003 00:46:18 -0000 Received: from sabre.velocet.net (216.138.209.205) by daedalus.apache.org with SMTP; 30 Jan 2003 00:46:18 -0000 Received: from gej-it.com (H213.C220.tor.velocet.net [216.138.220.213]) by sabre.velocet.net (Postfix) with ESMTP id 3AC341381EC for ; Wed, 29 Jan 2003 19:46:22 -0500 (EST) Received: from jeff ([192.168.0.101]) by gej-it.com ([216.138.220.213]) with SMTP (MDaemon.PRO.v6.5.1.R) for ; Wed, 29 Jan 2003 19:43:28 -0500 From: "Jeff Cohen" To: Date: Wed, 29 Jan 2003 19:43:26 -0500 Message-ID: <000c01c2c7f8$99f03bb0$6500a8c0@jeff> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 In-Reply-To: <3E387276.9060604@atmreports.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-MDRemoteIP: 192.168.0.101 X-Return-Path: apache@gej-it.com X-MDaemon-Deliver-To: users@httpd.apache.org X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: RE: [users@httpd] CGI problem with mod_userdir 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 >=20 > Thanks I didn't think of that... but no it still doesn't work. >=20 > 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. >=20 > -shawn >=20 > 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 > >> > >> Options ExecCGI > >> > >>--- 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 > >> > >> Options ExecCGI > >> > >>--- 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: > >>>------------------------------------- > >>> > >>> Options ExecCGI > >>> > >>> > >>>UserDir public_html > >>> > >>> Options ExecCGI > >>> > >>>--------------------------------------- > >>> > >>>I can change my tags to 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 > >>> > >> > >>-- > = >>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >>Shawn Wilson [shawnw@atmreports.com] > >>Software Developer, ATMReports.com > >>PH: 877-327-0873, FAX: 406-294-5806 > = >>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > > > > > = --------------------------------------------------------------------- > > The official User-To-User support forum of the Apache HTTP Server > Project. > > See 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 >=20 > -- > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Shawn Wilson [shawnw@atmreports.com] > Software Developer, ATMReports.com > PH: 877-327-0873, FAX: 406-294-5806 > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See 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