hgwebdir configuration problem

gda giu_damico at tiscali.it
Thu Jan 7 06:30:07 CST 2010


>I haven't seen any public responses to your mail, so here's my belated 
>attempt to help you out!

Thanks a lot Paul! 


>I don't think you need to create a link to your repository collection 
>from the public HTML directory. It all depends on how that directory is 
>configured within your Web server, but if static files within the public 
>HTML directory are being served up as static content, you run the risk 
>of publishing your repositories the simple (and inefficient) way, as I 
>think we see below.

Following your suggestion I have removed the link and now in the public_html
folder I have the following files:
hgweb.config
hgwebdir.cgi
prog_development 

where the folder prog_development contains all my repositories:
/home/myuser/public_html/prog_development/rep1
/home/myuser/public_html/prog_development/rep2
/home/myuser/public_html/prog_development/rep3


The hgweb.config is:
[collections]
/home/myuser/public_html=/home/myuser/public_html/prog_development

Note that now /home/myuser/public_html/prog_development is not a link but it
is a real folder.
   

>I guess that the public HTML directory has hgwebdir.cgi set up as the 
>default script.

Exactly this is the related part of my httpd.conf file:

DirectoryIndex index.html index.php hgwebdir.cgi hgweb.cgi

And this is the configuration part for public_html folders:

UserDir public_html
<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options ExecCGI MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS PROPFIND>
        Order deny,allow
        Deny from all
    </LimitExcept>
</Directory>


Unfortunately this configuration gives me exactly the same problems as
before. Moreover I had to introduce the following link in the public_html
folder:

static -> /usr/lib/python2.5/site-packages/mercurial/templates/static/

Without this link my web server cannot access to the templates and gives me
only plain text pages. 
 
Anyway what I cannot really understand is why using the script hgwebdir.cgi
I have links to my archivies like:

http://mypc/~myuser/prog_development/rep1/archive/tip.zip 

that does NOT work while using the script hgweb.cgi the links are like:

http://mypc/~myuser/prog_development/rep1/?archive/tip.zip 

that works fine! 

I guess I should have the question mark in both cases because the archive is
not present on the server and should be created by the scripts on fly. Isn't
it??


Any other suggestions? I'm really confused.


Bye


-- 
View this message in context: http://old.nabble.com/hgwebdir-configuration-problem-tp26872030p27059246.html
Sent from the Mercurial mailing list archive at Nabble.com.



More information about the Mercurial mailing list