2011年2月17日星期四

Re: Problem with nginx/0.8.54 and alias

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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

没有评论:

发表评论