Configuring Hg as backend
Gautier DI FOLCO
gautier.difolco at gmail.com
Tue Nov 27 16:41:36 UTC 2012
2012/11/27 Volodymyr Kostyrko <c.kworr at gmail.com>
> Maxim is right about arguments. But why not just use uwsgi?
>
> location ~ ^/hg(/.*) {
> include uwsgi_params;
> uwsgi_param SCRIPT_NAME '';
> uwsgi_param PATH_INFO $1;
> uwsgi_param HOST $host;
> uwsgi_param REMOTE_USER $remote_user;
> uwsgi_pass unix:/path/to/hg/.socket;
> }
>
> location /static/ {
> root /usr/local/lib/python2.7/site-**packages/mercurial/templates;
> }
>
> uwsgi_socket=/path/to/hg/.**socket
> uwsgi_flags='-C -L -M --threads 10 --file /where/is/hg/hgweb.wsgi'
>
> hgweb.conf:
> [web]
> prefix = /hg
> baseurl = http://hostname/hg/
>
> [paths]
> / = /where/is/hg/*
>
Thanks for your answer.
I didn't try this way because I didn't know it.
Thank you for this hint.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20121127/8b6c715a/attachment.html>
More information about the nginx
mailing list