Note:
This page appears to contain material that is no longer relevant. Please help improve this page by updating its content.
This page does not meet our wiki style guidelines. Please help improve this page by cleaning up its formatting. |
Setup hgwebdir on Redhat Enterprise Linux 4
The serving of multiple repositories over the Web is now described in the Publishing Repositories document together with other related information. However, this guide gives some specific RHEL-related guidance.
- mkdir /var/www/cgi-hg
cp hgwebdir.cgi /var/www/cgi-hg && chmod +x /var/www/cgi-hg/hgwebdir.cgi
- vi /etc/httpd/conf.d/hg.conf
ScriptAliasMatch ^/hg(.*) /var/www/cgi-hg/hgwebdir.cgi$1 <Directory /var/www/cgi-hg/> Options ExecCGI FollowSymLinks AllowOverride None </Directory>
- touch /var/www/cgi-hg/hgweb.config
- /etc/init.d/httpd reload
http://BASEURL/hg should now show an empty hgwebdir interface
- copy or symlink a hg repository, say "myproject" into /var/www/cgi-hg
- vi /var/www/cgi-hg/hgweb.config
[paths] #VIRTUAL_PATH = /REAL/PATH myproject = myproject # [collections] # /prefix/to/strip/off = /root/of/tree/full/of/repos # collections example: say directory tree /foo contains repos /foo/bar, # /foo/quux/baz. Give this config section: # [collections] # /foo = /foo # Then repos will list as bar and quux/baz.