This is a discussion on Apache and configuring cgi_bin for each user within the Linux Web Servers forums, part of the Web Server and Related Forums category; I work in a company that has Apache 1.3.22 on a SGI server. Each user in their home ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I work in a company that has Apache 1.3.22 on a SGI server. Each user
in their home directory has the typical "public_html" folder for web content. How do you configure Apache so that EACH user can have a cgi-bin folder that can execute .pl/.cgi files? I am not an admin of the system, just a user, but I want to be able to suggest to the admins how to do it (since I question their skill level at Apache type things). I looked in the /var/sgi_apache/httpd-outbox/etc/httpd.conf file (there is no /etc/httpd.conf) and found: <IfModule mod_userdir.c> UserDir public_html </ItModule> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" <Directory "/var/www/cgi-bin"> AllowOverrride None Order allow,deny Allow from all </Directory> But this will only allow cgi-bin content to be run out of ONE MASTER directory. How do you configure Apache for each user ? Thanks. |
|
|||
|
Sean wrote:
> I work in a company that has Apache 1.3.22 on a SGI server. Each user > in their home directory has the typical "public_html" folder for web > content. How do you configure Apache so that EACH user can have a > cgi-bin folder that can execute .pl/.cgi files? I looked in the > /var/sgi_apache/httpd-outbox/etc/httpd.conf file (there is no > /etc/httpd.conf) and found: > > <IfModule mod_userdir.c> > UserDir public_html > </ItModule> > > ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" > > <Directory "/var/www/cgi-bin"> > AllowOverrride None > Order allow,deny > Allow from all > </Directory> I have only one directory, you may have trouble getting an admin to allow more, most are terrified of cgi's in other dir's. Anyway, it's an option, so a directory might look like: <Directory /var/www/more-cgi-stuff/> AllowOverride None Order allow,deny Allow from all Deny from idiots.org Options ExecCGI </Directory> I'm not sure if it matters WHERE the directory is. Your example above is more to allow the cgi dir to be aliased, not necessarily to allow cgi (it does that too, but a cgi enabled directory doesn't have to be in the aliases section to work, I think it only needs the Option enabled for cgi.) You might try to slip ExecCGI into your directorie's Options field when the admin's not looking! Reading about mod_cgi on the Apache site http://www.apache.org may help too. -- -=-=-=-=-=-=-=-=-=-=-=The New Atr2.Ath.Cx=-=-=-=-=-=-=-=-=-=-= - jayjwa *Https Only* Mod-SSL / PGP Key / CA Onsite Was I helpful?: https://atr2.ath.cx/papers/affero.php What every Windows user needs: https://atr2.ath.cx/pub/pic.jpg Mail: jayjwa@hotspam.com Spam servers: listme@listme.dsbl.org /cgi-bin/ping-jay.cgi or finger for GPG & info /pub is public WWW directory Registered Linux fanatic #37 =-=-=-=-=-=-=-=Linux Tough.Powered By Slackware=-=-=-=-=-=-=-= |