[TriLUG] Apache question

jeremyp at pobox.com jeremyp at pobox.com
Thu Oct 18 14:59:12 EDT 2001


On Thu, 18 Oct 2001 prhodes at 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





More information about the TriLUG mailing list