Differences between revisions 3 and 5 (spanning 2 versions)
Revision 3 as of 2007-05-26 16:39:20
Size: 685
Editor: 61-70-193-147
Comment:
Revision 5 as of 2008-03-27 12:46:10
Size: 999
Editor: abuehl
Comment: +cat
Deletions are marked like this. Additions are marked like this.
Line 20: Line 20:
[collections]
/myproject = myproject
[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.
Line 23: Line 32:

----
CategoryWeb

Setup hgwebdir on Redhat Enterprise Linux 4

  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)