-
Notifications
You must be signed in to change notification settings - Fork 0
/
ngx-sb-443.conf
53 lines (39 loc) · 1.25 KB
/
ngx-sb-443.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
server {
listen 80;
listen [::]:80;
server_name gamingmuse.com www.gamingmuse.com;
return 301 https://www.gamingmuse.com$request_uri;
expires max;
}
server {
listen 443;
listen [::]:443;
server_name gamingmuse.com;
ssl on;
include /etc/nginx/custom/confs/ssl-gamingmuse.com.conf;
include /etc/nginx/custom/ssl-params.conf;
return 301 https://www.gamingmuse.com$request_uri;
expires max;
}
server {
listen 443 http2;
listen [::]:443 http2;
server_name www.gamingmuse.com;
ssl on;
include /etc/nginx/custom/confs/ssl-gamingmuse.com.conf;
include /etc/nginx/custom/ssl-params.conf;
root /etc/nginx/html/gamingmuse.com/www/public;
index index.php index.html index.htm;
location ~ /.well-known {
allow all;
}
location / {
try_files /wp-content/w3tc/pgcache/$cache_uri/_index.html $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include fastcgi.conf;
include fastcgi_params;
fastcgi_pass unix:/run/php/php7.1-fpm.sock;
fastcgi_param SCRIPT_FILENAME /etc/nginx/html/gamingmuse.com/www/public$fastcgi_script_name;
}
}