Apache and configuring cgi_bin for each user

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-24-2003
Sean
 
Posts: n/a
Default Apache and configuring cgi_bin for each user

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.
  #2 (permalink)  
Old 10-25-2003
jayjwa
 
Posts: n/a
Default Re: Apache and configuring cgi_bin for each user

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=-=-=-=-=-=-=-=



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:54 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0