2011年2月17日星期四

Re: Problem with nginx/0.8.54 and alias

On Feb 18, 2011, at 10:03 , Amanager wrote:

> Igor Sysoev Wrote:
> -------------------------------------------------------
>> Use late 0.8.x with this configuration:
>>
>> location ~ ^/phpmyadmin/(?.+\.php)$ {
>> fastcgi_pass 127.0.0.1:9000;
>> fastcgi_param SCRIPT_FILENAME
> /var/www/monsite.fr/phpMyAdmin/$NAME;
>> include fastcgi_params;
>> }
>
> I tried this code but it does not work. I still have the header HTTP/1.1
> 404 Not Found.

Regex locations depend on order, try this one:

location ~ ^/phpmyadmin/(?.+\.php)$ {
...

location ~ \.php$ {
...


--
Igor Sysoev
http://sysoev.ru/en/


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

没有评论:

发表评论