Подскажите как настроить конфиг nginx под yii2 advanced
есть домен managers.local по которому должно работать frontend приложение, а backend должен работать по адресу managers.local/manager
server {
listen 80;
ssi on;
gzip on;
gzip_comp_level 7;
gzip_types application/x-javascript application/javascript text/css;
charset utf-8;
client_max_body_size 128M;
server_name managers.local;
root /public_html/frontend/web;
index index.php;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
# deny accessing php files for the /assets directory
location ~ ^/assets/.*\.php$ {
deny all;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
try_files $uri =404;
}
location ~* /\. {
deny all;
}
}