diff --git a/abra.sh b/abra.sh index fbd597f..c4d5cd2 100644 --- a/abra.sh +++ b/abra.sh @@ -1,4 +1,4 @@ -export NGINX_DEFAULT_CONF_VERSION=v5 +export NGINX_DEFAULT_CONF_VERSION=v6 export PHP_UPLOADS_CONF_VERSION=v3 export ENTRYPOINT_CONF_VERSION=v2 export ENTRYPOINT_MAILRELAY_CONF_VERSION=v1 diff --git a/nginx.conf b/nginx.conf index d58d2e2..2ae730a 100644 --- a/nginx.conf +++ b/nginx.conf @@ -4,11 +4,12 @@ server { listen [::]:80; server_name localhost; + root /var/www/html; + #charset koi8-r; #access_log /var/log/nginx/host.access.log main; location / { - root /var/www/html; index index.html index.htm index.php; gzip_static on; try_files $uri $uri/ $uri.html $uri.php index.php?$query_string /index.php?$query_string; @@ -32,7 +33,7 @@ server { # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ { - try_files $uri /index.php =404; + # try_files $uri /index.php =404; fastcgi_pass {{ env "STACK_NAME" }}_app:9000; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(/.+)$;