fix var
This commit is contained in:
12
nginx.conf
12
nginx.conf
@@ -11,7 +11,7 @@ events {
|
||||
}
|
||||
|
||||
http {
|
||||
include $!{nginx}/conf/mime.types;
|
||||
include ${NIXPACKS_NGINX_ROOT}/conf/mime.types;
|
||||
index index.html index.htm index.php;
|
||||
|
||||
default_type application/octet-stream;
|
||||
@@ -41,9 +41,9 @@ http {
|
||||
|
||||
add_header X-Frame-Options "SAMEORIGIN";
|
||||
add_header X-Content-Type-Options "nosniff";
|
||||
|
||||
|
||||
index index.php;
|
||||
|
||||
|
||||
charset utf-8;
|
||||
|
||||
# Static files for root directory
|
||||
@@ -100,12 +100,12 @@ http {
|
||||
}
|
||||
|
||||
# Handle PHP files
|
||||
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
||||
include $!{nginx}/conf/fastcgi_params;
|
||||
include $!{nginx}/conf/fastcgi.conf;
|
||||
include ${NIXPACKS_NGINX_ROOT}/conf/fastcgi_params;
|
||||
include ${NIXPACKS_NGINX_ROOT}/conf/fastcgi.conf;
|
||||
}
|
||||
|
||||
# Gzip compression
|
||||
|
||||
Reference in New Issue
Block a user