Welcome! Log In Create A New Profile

Advanced

Re: nginx, alias и php-fastcgi

bas
October 12, 2009 02:26PM
Вылечил примерно так:
location /pma/ {
alias /usr/local/www/phpMyAdmin/;
index index.php index.html;
}
location ~ ^/pma/.*\.php$ {
rewrite ^/pma(/.*)$ $1 break;
fastcgi_pass unix:/tmp/php.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
/usr/local/www/phpMyAdmin$fastcgi_script_name;
include fastcgi_params;
fastcgi_param DOCUMENT_ROOT /usr/local/www/phpMyAdmin;
}

т.е. добавил rewrite, обрезающий /pma
Есть ли способ лучше?
Subject Author Posted

nginx, alias и php-fastcgi

bas October 12, 2009 01:46PM

Re: nginx, alias и php-fastcgi

Sky Cat October 12, 2009 02:04PM

Re: nginx, alias и php-fastcgi

bas October 12, 2009 02:18PM

Re: nginx, alias и php-fastcgi

bas October 12, 2009 02:26PM

Re: nginx, alias и php-fastcgi

Sky Cat October 12, 2009 02:42PM

Re: nginx, alias и php-fastcgi

bas October 12, 2009 03:00PM

Re: nginx, alias и php-fastcgi

Vitaliy Lisenko October 12, 2009 03:02PM

Re: nginx, alias и php-fastcgi

bas October 12, 2009 03:18PM

Re: nginx, alias и php-fastcgi

Роман Москвитин October 12, 2009 03:04PM

Re: nginx, alias и php-fastcgi

Igor Sysoev October 12, 2009 02:42PM

Re: nginx, alias и php-fastcgi

bas October 12, 2009 03:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 156
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready