update dev configuration
This commit is contained in:
+23
-13
@@ -1,4 +1,14 @@
|
||||
|
||||
upstream website_php {
|
||||
server tt.php:9000;
|
||||
}
|
||||
|
||||
upstream store_php {
|
||||
server tt.store:9000;
|
||||
}
|
||||
|
||||
server {
|
||||
|
||||
client_max_body_size 500M;
|
||||
server_name talentstube.dev;
|
||||
|
||||
@@ -12,7 +22,7 @@ server {
|
||||
}
|
||||
|
||||
location ~ ^/(app_dev|config)\.php(/|$) {
|
||||
fastcgi_pass php7_backend;
|
||||
fastcgi_pass website_php;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
||||
@@ -21,7 +31,7 @@ server {
|
||||
|
||||
# PROD
|
||||
location ~ ^/app\.php(/|$) {
|
||||
fastcgi_pass php7_backend;
|
||||
fastcgi_pass website_php;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
||||
@@ -32,22 +42,22 @@ server {
|
||||
sendfile off;
|
||||
|
||||
# ---- PRESTASHOP ----
|
||||
location ^~ /store/ {
|
||||
location ^~ /store/ {
|
||||
|
||||
root /home/www/talentstube.dev;
|
||||
index index.php;
|
||||
try_files $uri $uri/ /www/index.php;
|
||||
root /home/www/talentstube.dev;
|
||||
index index.php;
|
||||
try_files $uri $uri/ /www/index.php;
|
||||
|
||||
location ~ \.php$ {
|
||||
location ~ \.php$ {
|
||||
|
||||
try_files $uri =404;
|
||||
fastcgi_pass php7_backend;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
try_files $uri =404;
|
||||
fastcgi_pass store_php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
return 404;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user