2023-10-24 08:23:36 +00:00
|
|
|
worker_processes 1;
|
2023-10-24 07:43:46 +00:00
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
2023-10-24 07:38:55 +00:00
|
|
|
http {
|
2023-10-24 08:23:36 +00:00
|
|
|
include mime.types;
|
2023-10-24 08:22:01 +00:00
|
|
|
default_type application/octet-stream;
|
2023-10-24 07:38:55 +00:00
|
|
|
gzip on;
|
|
|
|
gzip_vary on;
|
|
|
|
gzip_proxied any;
|
|
|
|
gzip_comp_level 6;
|
|
|
|
gzip_buffers 16 8k;
|
|
|
|
gzip_http_version 1.1;
|
|
|
|
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
2023-10-24 08:22:01 +00:00
|
|
|
|
2023-10-24 07:38:55 +00:00
|
|
|
server {
|
2023-10-24 08:08:50 +00:00
|
|
|
listen 80;
|
2023-10-24 08:07:50 +00:00
|
|
|
|
2023-10-24 08:23:36 +00:00
|
|
|
location / {
|
|
|
|
root html;
|
|
|
|
index index.html index.htm;
|
2023-10-24 07:46:18 +00:00
|
|
|
}
|
|
|
|
|
2023-10-24 08:23:36 +00:00
|
|
|
#error_page 404 /404.html;
|
2023-10-24 08:07:50 +00:00
|
|
|
|
2023-10-24 08:23:36 +00:00
|
|
|
# redirect server error pages to the static page /50x.html
|
|
|
|
#
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
location = /50x.html {
|
|
|
|
root html;
|
2023-10-24 07:38:55 +00:00
|
|
|
}
|
|
|
|
}
|
2023-10-24 07:46:18 +00:00
|
|
|
}
|