Note:

This page appears to contain material that is no longer relevant. Please help improve this page by updating its content.

{i} 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.

  1. mkdir /var/www/cgi-hg
  2. cp hgwebdir.cgi /var/www/cgi-hg && chmod +x /var/www/cgi-hg/hgwebdir.cgi

  3. 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>
  4. touch /var/www/cgi-hg/hgweb.config
  5. /etc/init.d/httpd reload

    http://BASEURL/hg should now show an empty hgwebdir interface

  6. copy or symlink a hg repository, say "myproject" into /var/www/cgi-hg
  7. 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

RHEL4HgWebDirSetup (last edited 2015-08-23 14:29:17 by mpm)