Yet another hgweb config question
Patrick Waugh
ptwaugh at gmail.com
Thu Nov 6 04:09:31 CST 2008
Peter,
On Thu, Nov 6, 2008 at 3:10 AM, Peter Hosey <boredzo at gmail.com> wrote:
> On Nov 06, 2008, at 01:06:06, Patrick Waugh wrote:
>> RewriteEngine On
>> RewriteBase /repo
>> RewriteRule ^$ hgwebdir.cgi [L]
>> RewriteCond %{REQUEST_FILENAME} !-f
>> RewriteCond %{REQUEST_FILENAME} !-d
>> RewriteRule (.*) hgwebdir.cgi/$1 [QSA,L]
>
> Wouldn't this work just as well?
>
> DirectoryIndex hgwebdir.cgi
Actually, that's a separate issue, and is setup in http.conf like so
on my system:
<Directory "/home/*/public_html">
DirectoryIndex hgwebdir.cgi index.html index.htm index.cgi index.pl
index.php index.xhtml
AddHandler cgi-script .cgi
Options All +Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Order Allow,Deny
Allow from localhost
</Directory>
More information about the Mercurial
mailing list