Date: 07 Mar 2002 16:02:09 -0700 From: John-David Childs <jdc@nterprise.net> To: Jonas Fornander <jonas@netwood.net> Cc: "'David A. Hauan'" <dah@hauan.org>, questions@FreeBSD.ORG Subject: RE: Still need help with configuring cgi-bin Message-ID: <1015542131.17572.63.camel@lohr> In-Reply-To: <039a01c1c5b4$4ccf1730$0800a8c0@master> References: <039a01c1c5b4$4ccf1730$0800a8c0@master>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2002-03-07 at 01:44, Jonas Fornander wrote: > OK, it works if I add ExecCGI to <Directory /> section, but isn't that a > security issue? Now they can run scripts in any directory not just the > cgi-bin. Uh, YEAH! Honestly, ya need to RTFM the Apache docs at http://httpd.apache.org, but the short answer is: Do one of the following: For a SINGLE user running his/her own CGI, add the Script-Alias directive for that user...something like: ScriptAlias /jouser-cgi/ "/home/joeuser/public_html/cgi-bin" <Directory "/home/joeuser/public_html/cgi-bin"> Options ExecCGI </Directory> For multiple users on a system, look into the "suexec" setup: http://httpd.apache.org/docs/suexec.html And finally, Section F of: http://httpd.apache.org/docs/misc/FAQ.html > > Jonas Fornander - System Administrator > Netwood Communications, LLC - www.netwood.net > Find out why we're better - 310-442-1530 > > > -----Original Message----- > > From: owner-freebsd-questions@FreeBSD.ORG > > [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of > > David A. Hauan > > Sent: Wednesday, March 06, 2002 1:46 PM > > To: Jonas Fornander > > Cc: questions@FreeBSD.ORG > > Subject: Re: Still need help with configuring cgi-bin > > > > > > Jonas Fornander wrote: > > > > > > I still can't get the scripting to work in users directory. I have > > > tried every combination but to no avail. I am restarting > > apache after > > > any change to httpd.conf and I don't have a cached page in the > > > browser. > > > > > > In the hope that someone from the group - with more experience and > > > knowledge than myself - would be kind enough to assist > > further, I have > > > pasted my httpd.conf configuration below my sig. To keep > > the file size > > > down, I have removed all comments except if a command was commented > > > out in the original install configuration. > > > > > > I'm trying to get scripting to run in > > > /usr/home/user3/public_html/cgi-bin but for my life I don't > > understand > > > why it doesn't run. I get a permission error in the > > browsers and the > > > access log says that Option ExecCGI is off. > > > > > > Script runs fine in the ScriptAlias directory. > > > > > > TIA for any assistance. > > > > > you've answered your own question > > > > > <Directory /> > > > Options FollowSymLinks > > > AllowOverride None > > > </Directory> > > > > you gotta have > > Options ExecCGI > > in all your your stuff! > > > > dave > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1015542131.17572.63.camel>