Update .gitignore + Create maxt conf

This commit is contained in:
2017-02-28 10:43:59 +01:00
parent 067f54f17b
commit 44b0d0d6c0
2 changed files with 37 additions and 0 deletions
+2
View File
@@ -33,3 +33,5 @@ www/composer.phar
log/*
.DS_Store
.idea/*
+35
View File
@@ -0,0 +1,35 @@
server {
server_name tt.dev;
root /home/projects/website/www/web;
# DEV
location / {
try_files $uri /app_dev.php$is_args$args;
}
location ~ ^/(app_dev|config)\.php(/|$) {
fastcgi_pass php7_backend;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
}
# PROD
location ~ ^/app\.php(/|$) {
fastcgi_pass php7_backend;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
internal;
}
location ~ \.php$ {
return 404;
}
error_log /home/projects/website/log/project_error.log;
access_log /home/projects/website/log/project_access.log;
sendfile off;
}