Update .gitignore + Create maxt conf
This commit is contained in:
@@ -33,3 +33,5 @@ www/composer.phar
|
||||
|
||||
log/*
|
||||
.DS_Store
|
||||
|
||||
.idea/*
|
||||
|
||||
Executable
+35
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user