mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-02 10:40:07 +00:00
28 lines
737 B
Text
28 lines
737 B
Text
|
server {
|
||
|
root /home/{user}/www/{vhost}/web;
|
||
|
index app_dev.php;
|
||
|
|
||
|
server_name {vhost};
|
||
|
client_max_body_size 10M;
|
||
|
|
||
|
error_log /var/log/nginx/{vhost}.error.log;
|
||
|
access_log /var/log/nginx/{vhost}.access.log;
|
||
|
|
||
|
location / {
|
||
|
try_files $uri $uri/ /app_dev.php;
|
||
|
}
|
||
|
|
||
|
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:{pool_port}
|
||
|
location ~ ^/(app|app_dev|check)\.php(/|$) {
|
||
|
fastcgi_pass 127.0.0.1:{pool_port};
|
||
|
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||
|
include fastcgi_params;
|
||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||
|
fastcgi_param HTTPS off;
|
||
|
}
|
||
|
|
||
|
location ~ /\.ht {
|
||
|
deny all;
|
||
|
}
|
||
|
}
|