hgrc and hgwebdir.cgi on linux related questions
Patrick Waugh
ptwaugh at gmail.com
Fri Oct 3 05:42:05 CDT 2008
Hi,
First, I get this message in my error log:
[Fri Oct 03 05:31:41 2008] [error] [client 98.211.63.103] File does
not exist: /var/www/hg, referer:
http://98.211.63.103/~patrick/hg/hgweb.cgi
and I am not understanding what file does not exist "/var/www/hg".
Second, while I can see the repository list with my hgwebdir.cgi, and
I have style=gitweb set in each repos's hgrc file, I get a very plain
listing (ie no style at all) when I look at the served page. On my
error logs, it shows to that the hgrc files are not being accessed due
to the user being me (patrick) rather than say whatever user apache2
is using.
I'm using Ubuntu Hardy, and tried setting the group of those files to
"www-data", but I really want things setup so that I don't have to
remember to manually change a user or group name on a file when
working as myself. In other words, how can I set things up so that I
don't have to change the owner/group of the hgrc file?
The online manual seems to lack a single section which describes all
the hgrc/config files/locations/options. The info appears scattered
throughout the manual. Is there a single reference for such info?
BTW, while originally I was trying to get my shared server to host my
repos, now what I do is even cooler. I setup redirection on my shared
server to go to the repos on my local apache2 server. So, now I've
got my "working" local copies in /home/patrick/hg, while I have
another copy in /home/patrick/public_html/hg. Are others doing this,
or do you just use one or the other and point apache2 appropriately?
Thanks, patrick
More information about the Mercurial
mailing list