-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathdujiaoka.com.conf
43 lines (32 loc) · 1.11 KB
/
dujiaoka.com.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
server {
listen 80;
listen [::]:80;
listen 443 ssl;
listen [::]:443 ssl;
listen 443 quic;
listen [::]:443 quic;
server_name yuming.com;
ssl_certificate /etc/nginx/certs/yuming.com_cert.pem;
ssl_certificate_key /etc/nginx/certs/yuming.com_key.pem;
if ($scheme = http) {
return 301 https://$host$request_uri;
}
root /var/www/html/yuming.com/dujiaoka/public/;
index index.php;
try_files $uri $uri/ /index.php?$args;
location ~ \.php$ {
fastcgi_pass php74:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
# fastcgi_cache my_cache;
# add_header Cache-Control "public, max-age=60";
add_header Alt-Svc 'h3=":443"; ma=86400';
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|bmp|swf|eot|svg|ttf|woff|woff2|webp)$ {
add_header Cache-Control "public, max-age=2592000";
add_header Alt-Svc 'h3=":443"; ma=86400';
log_not_found off;
}
client_max_body_size 50m;
}