Re: nginx, alias и php-fastcgi
bas
bas at it-core.org
Mon Oct 12 22:22:57 MSD 2009
Вылечил примерно так:
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
Есть ли способ лучше?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20091013/3290684c/attachment.html>
More information about the nginx-ru
mailing list