Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CGI in UserDIR
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
hybernate20
n00b
n00b


Joined: 22 Mar 2006
Posts: 64

PostPosted: Mon Jun 11, 2007 5:14 pm    Post subject: CGI in UserDIR Reply with quote

If I would like the default page for my userdir (~/public_html) to be a cgi file, is there any way that I can set apache up to do that? Furthermore, is it insecure to do so? It is inconvenient to put everything in the cgi-bin, especially when it is nowhere near the same directory.
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Mon Jun 11, 2007 6:43 pm    Post subject: Reply with quote

Quote:
If I would like the default page for my userdir (~/public_html) to be a cgi file, is there any way that I can set apache up to do that?

Yes it is, a quick google search reassures me. this site is my reference, and explains how to do it a few different ways in a few short links.

Quote:
is it insecure to do so?

To some extent, it seems to me, because users aren't necessarily responsible about writing secure cgi scripts. A more fine-grained security mechanism can be allowed though; for example, if I wanted to do this (I use php instead generally) I would set up a section in httpd.conf to allow, just like userdir webpages in ~/public_html, userdir cgi scripting in ~/cgi-bin and require a cgi group for use of it. That way, the default is to disallow everyone, but I can give users permission to write cgi scripts on a user-by-user basis easily.
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum