Problem with nginx/0.8.54 and alias

Igor Sysoev igor at sysoev.ru
Fri Feb 18 10:21:48 MSK 2011


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/




More information about the nginx mailing list