[techtalk] re: Apache

Erin Clarke blue at web.net
Wed Apr 12 14:46:01 EST 2000


Not exactly Linux-specific, but... [=^J

On Wed, Apr 12, 2000 at 12:12:45PM -0700, Allen Heinecke wrote:
> Does anyone know how to get apache to recognize each individual user's
> cgi-bin directory... I believe that I had this working at one time, but
> now I can't find it in the configuration files for the life of me.

I'm not sure how you are setting up your web server, but, in general,
use the ScriptAlias mapping directive within the <VirtualHost> sectional 
directive.

Like so:
 
ScriptAlias     /cgi-bin/ /www/server/path/user/site/cgi-bin/

For example:

<VirtualHost 123.45.67.89>
    ServerName      www.usersite.net
    ServerAdmin     admin at usersite.net
    DocumentRoot    /www/server/path/user/site
    ScriptAlias     /cgi-bin/ /www/server/path/user/site/cgi-bin/
    ErrorLog        /wwwlogs/logs/usersite/error_log
#   TransferLog     /wwwlogs/logs/usersite/access_log
    TransferLog "|/usr/local/sbin/cronolog /wwwlogs/logs/usersite/%Y-%m-%d"
</VirtualHost>

If this doesn't work, check to see if you have 

AddHandler cgi-script cgi 

Hope that helps,

Erin  8)

Erin Clarke,
SysAdmin-y Type,
Doer of Many Things





More information about the Techtalk mailing list