Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nginx, alias и php-fastcg i
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
|