/ Published in: Apache
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# Password zone <Location /hg/ecla> AuthType Basic Order allow,deny Allow from all AuthName "Mercurial private area" Require valid-user AuthUserFile /var/hg/passfile.pass </Location> RewriteEngine on RewriteRule ^/hg(.*) /var/hg/hgwebdir.cgi$1 <Directory "/var/hg/"> Options ExecCGI AddHandler cgi-script .cgi </Directory>