Changes specific to empirereportnewyork.com
This commit is contained in:
parent
fc9cccb05e
commit
939e049fc1
@ -6,3 +6,17 @@ tcp_nopush on;
|
||||
|
||||
# Don't wait to send data in keep-alive state.
|
||||
tcp_nodelay on;
|
||||
|
||||
|
||||
map $http_user_agent $user_type {
|
||||
default "desktop";
|
||||
# Android
|
||||
"~Mozilla/5.0 \(Linux; Android" mobile;
|
||||
# Opera
|
||||
"~Opera Mini" mobile;
|
||||
# iOS
|
||||
"~Mozilla/5.0 \(iPhone" mobile;
|
||||
# Windows Phone
|
||||
"~Mozilla/5.0 \(Windows Phone" mobile;
|
||||
}
|
||||
|
||||
|
||||
@ -9,5 +9,5 @@
|
||||
include /etc/nginx/upstreams/*.conf;
|
||||
|
||||
map '' $upstream {
|
||||
default php73;
|
||||
default php81;
|
||||
}
|
||||
|
||||
@ -9,3 +9,5 @@ include global/server/security.conf;
|
||||
|
||||
# Static Content
|
||||
include global/server/static-files.conf;
|
||||
rewrite /sitemap_index.xml$ /index.php?sitemap=1 last;
|
||||
rewrite /([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
# The key to use when saving cache files, which will run through the MD5 hashing algorithm.
|
||||
fastcgi_cache_key "$scheme$request_method$host$request_uri";
|
||||
fastcgi_cache_key "$scheme$request_method$host$user_type$request_uri";
|
||||
|
||||
# If an error occurs when communicating with FastCGI server, return cached content.
|
||||
# Useful for serving cached content if the PHP process dies or timeouts.
|
||||
|
||||
1
modules-available
Symbolic link
1
modules-available
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/share/nginx/modules
|
||||
@ -12,6 +12,8 @@ worker_rlimit_nofile 8192;
|
||||
# File that stores the process ID. Rarely needs changing.
|
||||
pid /run/nginx.pid;
|
||||
|
||||
load_module modules/ngx_http_cache_purge_module.so;
|
||||
|
||||
events {
|
||||
# Set the maximum number of connection each worker process can open. Anything higher than this
|
||||
# will require Unix optimisations.
|
||||
|
||||
4
upstreams/php74.conf
Normal file
4
upstreams/php74.conf
Normal file
@ -0,0 +1,4 @@
|
||||
# Defines the upstream for PHP 7.0
|
||||
upstream php74 {
|
||||
server unix:/run/php/php7.4-fpm.sock;
|
||||
}
|
||||
4
upstreams/php81.conf
Normal file
4
upstreams/php81.conf
Normal file
@ -0,0 +1,4 @@
|
||||
# Defines the upstream for PHP 7.0
|
||||
upstream php81 {
|
||||
server unix:/run/php/php8.1-fpm.sock;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user