Welcome! Log In Create A New Profile

Advanced

Mercurial hgweb push

Posted by Haschmi 
Mercurial hgweb push
May 03, 2012 04:40AM
Hi,

I am trying to make Mercurial hgweb.fcgi script working with nginx.
Pulling from repositories works fine but I cannot push to them.
The error message in log on pushing is:
[error] 30754#0: *1 no user/password was provided for basic authentication, client: <IP>, server: <SERVER>, request: "GET /test?cmd=capabilities HTTP/1.1", host: "<SERVER>"
/test is my test repository and a username/password was of course provided.

my nginx config looks like this:


server {
server_name <SERVER>;
listen 443;
client_max_body_size 100M;
access_log /var/log/nginx/hg.access.log;
root /opt/vcs;

ssl on;
ssl_certificate /etc/nginx/ssl/hg.crt;
ssl_certificate_key /etc/nginx/ssl/hg.key;

ssl_protocols SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
ssl_prefer_server_ciphers on;

location ~ / {
fastcgi_index hgweb.cgi;
fastcgi_pass unix:/var/run/fcgiwrap.socket;

auth_basic "HG Login";
auth_basic_user_file hgusers;

fastcgi_param PATH_INFO $uri;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_intercept_errors on;
fastcgi_param AUTH_USER $remote_user;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param SCRIPT_FILENAME /opt/vcs/hgweb.fcgi;

include fastcgi_params;
}
}


I hope someone has an idea how this issue can be fixed - duckduckgo and google could not find any working solution.
Mercurial version is 2.0.2
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 239
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready