nginx mod_wsgi mercurial config

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
server {
listen 80;
server_name hg.piranha.org.ua;
include /etc/nginx/wsgi_params;
location / {
wsgi_pass /home/piranha/web/hgwebdir/hgwebdir.wsgi;
limit_except GET {
wsgi_pass /home/piranha/web/hgwebdir/hgwebdir.wsgi;
auth_basic_user_file /home/dev/trac.htpass;
auth_basic "restricted";
}
}
}