httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Sterin" <iste...@hotmail.com>
Subject Re: Home directory cgi-bin
Date Thu, 14 Mar 2002 19:29:31 GMT
Peter, thanks a bunch, really appreciate your help.

Ilya


>From: "Pete Nelson" <pete.nelson@ci.stpaul.mn.us>
>Reply-To: users@httpd.apache.org
>To: <users@httpd.apache.org>
>Subject: Re: Home directory cgi-bin
>Date: Thu, 14 Mar 2002 12:46:23 -0600
>
>Whoops!  One mistake -
>
>The ScriptAliasMatch is a little different than ScriptAlias!  I should
>have put:
>
>ScriptAliasMatch /~(.*)/cgi-bin/(.*) /home/$1/cgi-bin/$2
>
>I guess you need to match the filename of the CGI program as well.
>
>However, if you're using mod_perl, you only need to invoke the handler
>for the cgi-bin directory (in the case of mod_perl, the perl-script
>handler):
>
><Directory /home/*/cgi-bin/>
>     SetHandler perl-script
>     PerlHandler Apache::Registry
>     AllowOverride None
>     Options ExecCGI
>     Order allow,deny
>     Allow from all
></Directory>
>
>--
>Pete Nelson, Web Developer
><pete.nelson@ci.stpaul.mn.us>
>http://www.ci.stpaul.mn.us/
>
> >>> pete.nelson@ci.stpaul.mn.us 03/14/02 11:52AM >>>
>You need to add the CGI handler to the directory. The most common way
>is
>to use the 'ScriptAlias' directive. Try something like this:
>
>ScriptAliasMatch /~(.*)/cgi-bin /home/$1/public_html/cgi-bin
>
><Directory /home/*/public_html/cgi-bin>
>     AllowOverride None
>     Options None
>     Order allow,deny
>     Allow from all
></Directory>
>
>  - or -
>
>You could invoke the cgi handler explicitly, since you really don't
>need to alias in this case:
>
><Directory /home/*/public_html/cgi-bin>
>     SetHandler cgi-handler
>     AllowOverride None
>     Options None
>     Order allow,deny
>     Allow from all
></Directory>
>
>
>
>--
>Pete Nelson, Web Developer
><pete.nelson@ci.stpaul.mn.us>
>http://www.ci.stpaul.mn.us/
>
> >>> isterin@hotmail.com 03/14/02 11:35AM >>>
>I've tried to find it in the book and on the web, but maybe I'm
>searching
>wrong:-)
>
>I've set up my apache 1.3 on linux 2.4.18 (custom build system 686) to
>
>direct ~username/ to the /home/username/htdocs dir and that works
>fine,
>but
>now I'm trying to enable cgi-bin there as well.  Can someone direct me
>in
>the right direction.  Just simply inserting cgi-bin in
>/home/username/htdocs/cgi-bin doesn't execute any scripts, nor does it
>in
>just the htdocs dir.  Not sure how to do that for these directories.
>If you
>can either let me know how that can be accomplished or point me to the
>right
>documentation, I'd really appreciate it:-)
>
>Ilya
>
>_________________________________________________________________
>MSN Photos is the easiest way to share and print your photos:
>http://photos.msn.com/support/worldwide.aspx
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server
>Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server
>Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message