location ~ \.php$ {
try_files $fastcgi_script_name =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $htdocs$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
fastcgi_read_timeout 6000;
}
Это еще делал
(Добавление)
andrewkard пишет:Нужно добавить еще один блок
location /phpmyadmin {
root /var/www/phpmyadmin
}
и в текущий блок перенести рут
location / {
root /var/www/php.zzz;
# Redirect everything that isn't real file to yii bootstrap file including arguments.
try_files $uri $uri/ /$yii_boot
не очень понял
|