thehrz.net/nginx/conf.d/root.conf

21 lines
470 B
Plaintext
Raw Normal View History

2023-08-17 21:22:19 +08:00
server {
listen 80;
listen [::]:80;
server_name thehrz.net;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.1;
gzip_comp_level 9;
gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/javascript application/json;
gzip_disable "MSIE [1-6]\.";
gzip_vary on;
2023-10-03 20:53:45 +08:00
error_page 404 /404.html;
2023-08-17 21:22:19 +08:00
location / {
root /usr/local/nginx/html/;
try_files $uri $uri/ /index.html;
}
}