On Thu, 2007-02-15 at 22:36 -0500, Galaxy Travel wrote:
> Im a newbie and im trying to figure out hos to do this:
> 
> I want each user to have a directory like /home/public_html and 
> /home/cgi-bin
> 
> Now in doc root in httpd.conf what do I put that as? I know I have to 
> use the userdir_mod but Im confused on the httpd.conf. I hope someone 
> can shed some light here. Thanks 

I use that attached patch, which ought to be similar to what you want -
it enables user directories ($HOME/public_html) and creates a cgi-bin
directory within that directory ($HOME/public_html/cgi-bin).

Pretty much just a case of uncommenting the existing userdir support,
and adding a new block for the CGI stuff...

Simon.
diff -Naur httpd-2.2.3/docs/conf/extra/httpd-userdir.conf.in httpd-2.2.3-new/docs/conf/extra/httpd-userdir.conf.in
--- httpd-2.2.3/docs/conf/extra/httpd-userdir.conf.in	2005-04-26 19:51:11.000000000 +1200
+++ httpd-2.2.3-new/docs/conf/extra/httpd-userdir.conf.in	2007-01-02 17:40:16.000000000 +1300
@@ -26,3 +26,7 @@
     </LimitExcept>
 </Directory>
 
+<Directory /home/*/public_html/cgi-bin>
+    Options ExecCGI
+    SetHandler cgi-script
+</Directory>
diff -Naur httpd-2.2.3/docs/conf/httpd.conf.in httpd-2.2.3-new/docs/conf/httpd.conf.in
--- httpd-2.2.3/docs/conf/httpd.conf.in	2005-11-30 05:10:50.000000000 +1300
+++ httpd-2.2.3-new/docs/conf/httpd.conf.in	2007-01-02 17:39:45.000000000 +1300
@@ -377,7 +377,7 @@
 #Include @rel_sysconfdir@/extra/httpd-languages.conf
 
 # User home directories
-#Include @rel_sysconfdir@/extra/httpd-userdir.conf
+Include @rel_sysconfdir@/extra/httpd-userdir.conf
 
 # Real-time info on requests and configuration
 #Include @rel_sysconfdir@/extra/httpd-info.conf

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to