fix nginx config
This commit is contained in:
parent
66a2ede98c
commit
088c84ba70
2
abra.sh
2
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 PHP_UPLOADS_CONF_VERSION=v3
|
||||||
export ENTRYPOINT_CONF_VERSION=v2
|
export ENTRYPOINT_CONF_VERSION=v2
|
||||||
export ENTRYPOINT_MAILRELAY_CONF_VERSION=v1
|
export ENTRYPOINT_MAILRELAY_CONF_VERSION=v1
|
||||||
|
|
|
@ -4,11 +4,12 @@ server {
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
|
||||||
|
root /var/www/html;
|
||||||
|
|
||||||
#charset koi8-r;
|
#charset koi8-r;
|
||||||
#access_log /var/log/nginx/host.access.log main;
|
#access_log /var/log/nginx/host.access.log main;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /var/www/html;
|
|
||||||
index index.html index.htm index.php;
|
index index.html index.htm index.php;
|
||||||
gzip_static on;
|
gzip_static on;
|
||||||
try_files $uri $uri/ $uri.html $uri.php index.php?$query_string /index.php?$query_string;
|
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
|
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
|
||||||
#
|
#
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
try_files $uri /index.php =404;
|
# try_files $uri /index.php =404;
|
||||||
fastcgi_pass {{ env "STACK_NAME" }}_app:9000;
|
fastcgi_pass {{ env "STACK_NAME" }}_app:9000;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
|
|
Loading…
Reference in New Issue