Problem with nginx/0.8.54 and alias

Maxim Dounin mdounin at mdounin.ru
Thu Feb 17 22:19:23 MSK 2011


Hello!

On Thu, Feb 17, 2011 at 01:09:15PM -0500, Dayo wrote:

> Igor Sysoev Wrote:
> -------------------------------------------------------
> > Use late 0.8.x with this configuration:
> > 
> >  location ~ ^/phpmyadmin/(?.+\.php)$ {

Just a side note: forum is awful, it eats data.

> >      fastcgi_pass 127.0.0.1:9000;
> >      fastcgi_param SCRIPT_FILENAME
> >                   
> > /var/www/monsite.fr/phpMyAdmin/$NAME;
> >      include fastcgi_params;
> >  }
> Tried this out on 0.8.54 and got ...
> 
> pcre_compile() failed: unrecognized character after (?< in
> "^/phpmyadmin/(?.+\.php)$" at "NAME>.+\.php)$"

Probably you have ancient PCRE library.  Try (?P<name>) form 
which is supported since PCRE 4.0.

http://nginx.org/en/docs/http/server_names.html#regex_names

Maxim Dounin



More information about the nginx mailing list