Nginx + Mercurial + $path_info

Hi guys,
the last couple of days I’ve been working on a Mercurial repository
behind nginx (via fastCGI) and it has been working absolutely fine. Now
I had to move my /www/ directory for the repository and can’t get it to
work again.

I think(!) I have a problem with the $path_info variable.

As you can see on the repository
“buschi” points at “http://buschi/”, whereas it should point at”. Also, if you browse latter url,
all other links are broken as well, with an additional “//buschi/”
prefixed to every url.

I tried several variables for PATH_INFO, but none of them work.
Interestingly I had it working before, but I messed something up.

location / {

            include /usr/local/nginx/conf/fastcgi_params;
            fastcgi_param PATH_INFO $uri;

Has anyone got any clues?


Never mind. If someone runs into the same problem, here is the solution:

Make sure your hgweb.config has the following section:

baseurl =

$path_info and Nginx had nothing to do with it.