View previous topic :: View next topic |
Author |
Message |
hybernate20 n00b
Joined: 22 Mar 2006 Posts: 64
|
Posted: Mon Jun 11, 2007 5:14 pm Post subject: CGI in UserDIR |
|
|
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 |
|
|
erik258 Advocate
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Mon Jun 11, 2007 6:43 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|