[TriLUG] Apache question
trilug@trilug.org
trilug@trilug.org
Thu, 18 Oct 2001 14:59:12 -0400 (EDT)
On Thu, 18 Oct 2001 prhodes@vdsinc.com wrote:
>
> > in the httpd.conf put
> > Alias /cvsweb /path/to/cgi-bin/cvsweb.cgi
>
> > restart apache i believe that is the way to do
>
>
> Ok, that's what I thought. But, when I did that, I get a "403 - Forbidden"
> error back from Apache, telling me that I don't have permission to access
> /cvsweb.
Philip,
Somehow my messages to trilug aren't getting out very well.
Here's my solution which will work quickly in two lines:
<Directory />
RewriteEngine On
RewriteRule /cvsweb /cgi-bin/cvsweb.cgi
</Directory>
If you use aliases like others have suggested, you'll need to do this
also:
<Location /cvsweb>
Options +ExecCGI
# whatever other special options are necessary for the directory
</Location>
That would result in unnecesssary duplication of information (plus the
Alias command duplicated the physical path to the cgi-bin directory).
Using the rewrite option I suggested uses less code and is more elegant,
although enabling the rewrite parser does incur some performance loss.
--Jeremy