Welcome! Log In Create A New Profile

Advanced

Re: nginx, alias и php-fastcgi

October 12, 2009 02:42PM
On Mon, Oct 12, 2009 at 11:34:59PM +0600, bas wrote:

> Ситуация следующая:
> phpMyAdmin в /usr/local/www/phpMyAdmin
> Хочу, чтобы он был доступен по http://my.server/pma/
> Пробую вот так:
> location /pma/ {
> alias /usr/local/www/phpMyAdmin/;
> index index.php index.html;
> }
> location ~ ^/pma/.*\.php$ {
> 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;
> }
>
> получаю ошибку "No input file specified."
> [ icq:# 344045 ]

location ~ ^/pma/(.*\.php)$ {
fastcgi_pass unix:/tmp/php.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/local/www/phpMyAdmin/$1;
fastcgi_param DOCUMENT_ROOT /usr/local/www/phpMyAdmin;
}


--
Игорь Сысоев
http://sysoev.ru
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: 172
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