Apache Configuration For Mercurial


/ Published in: Apache
Save to your folder(s)



Copy this code and paste it in your HTML
  1. # Password zone
  2. <Location /hg/ecla>
  3. AuthType Basic
  4. Order allow,deny
  5. Allow from all
  6. AuthName "Mercurial private area"
  7. Require valid-user
  8. AuthUserFile /var/hg/passfile.pass
  9. </Location>
  10.  
  11.  
  12. RewriteEngine on
  13. RewriteRule ^/hg(.*) /var/hg/hgwebdir.cgi$1
  14.  
  15. <Directory "/var/hg/">
  16. Options ExecCGI
  17. AddHandler cgi-script .cgi
  18. </Directory>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.