-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/2.3.9' into craft-webpack
- Loading branch information
Showing
3 changed files
with
36 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,49 @@ | ||
server { | ||
listen 80 default_server; | ||
listen 80; | ||
listen [::]:80; | ||
|
||
server_name _; | ||
root /var/www/project/cms/web; | ||
index index.html index.php; | ||
index index.html index.htm index.php; | ||
charset utf-8; | ||
|
||
location / { | ||
try_files $uri $uri/ /index.php?$query_string; | ||
} | ||
gzip_static on; | ||
|
||
ssi on; | ||
|
||
client_max_body_size 0; | ||
|
||
error_page 404 /index.php?$query_string; | ||
|
||
access_log off; | ||
error_log /var/log/nginx/error.log error; | ||
error_log /dev/stdout info; | ||
|
||
sendfile off; | ||
ssi on; | ||
location / { | ||
try_files $uri/index.html $uri $uri/ /index.php?$query_string; | ||
} | ||
|
||
client_max_body_size 10m; | ||
|
||
gzip on; | ||
gzip_http_version 1.0; | ||
gzip_proxied any; | ||
gzip_min_length 500; | ||
gzip_disable "MSIE [1-6]\."; | ||
gzip_types text/plain text/xml text/css | ||
text/comma-separated-values | ||
text/javascript | ||
application/x-javascript | ||
application/javascript | ||
application/atom+xml; | ||
|
||
location ~ \.php$ { | ||
location ~ [^/]\.php(/|$) { | ||
try_files $uri $uri/ /index.php?$query_string; | ||
fastcgi_split_path_info ^(.+\.php)(/.+)$; | ||
fastcgi_pass php:9000; | ||
fastcgi_index index.php; | ||
include fastcgi_params; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_param PATH_INFO $fastcgi_path_info; | ||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; | ||
fastcgi_param DOCUMENT_ROOT $realpath_root; | ||
fastcgi_param HTTP_PROXY ""; | ||
|
||
add_header Last-Modified $date_gmt; | ||
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0"; | ||
if_modified_since off; | ||
expires off; | ||
etag off; | ||
|
||
fastcgi_intercept_errors off; | ||
fastcgi_buffer_size 16k; | ||
fastcgi_buffers 4 16k; | ||
fastcgi_connect_timeout 300; | ||
fastcgi_send_timeout 300; | ||
fastcgi_read_timeout 300; | ||
} | ||
|
||
location ~ /\.ht { | ||
deny all; | ||
} | ||
} |