<> <> = Setup hgwebdir on Redhat Enterprise Linux 4 = {{{#!wiki tip The serving of multiple repositories over the Web is now described [[PublishingRepositories#multiple|in the Publishing Repositories document]] together with other related information. However, this guide gives some specific RHEL-related guidance. }}} 1. mkdir /var/www/cgi-hg 1. cp hgwebdir.cgi /var/www/cgi-hg && chmod +x /var/www/cgi-hg/hgwebdir.cgi 1. vi /etc/httpd/conf.d/hg.conf {{{ ScriptAliasMatch ^/hg(.*) /var/www/cgi-hg/hgwebdir.cgi$1 Options ExecCGI FollowSymLinks AllowOverride None }}} 1. touch /var/www/cgi-hg/hgweb.config 1. /etc/init.d/httpd reload http://BASEURL/hg should now show an empty hgwebdir interface 1. copy or symlink a hg repository, say "myproject" into /var/www/cgi-hg 1. 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. }}} ---- CategoryWeb