2021-11-15 22:24:54 +08:00
|
|
|
user root;
|
|
|
|
worker_processes 1;
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
http {
|
|
|
|
include mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
sendfile on;
|
|
|
|
keepalive_timeout 65;
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 8980;
|
2021-11-16 10:44:07 +08:00
|
|
|
server_name 127.0.0.1;
|
|
|
|
client_max_body_size 200m;
|
2021-11-15 22:24:54 +08:00
|
|
|
|
|
|
|
location / {
|
2021-11-16 10:44:07 +08:00
|
|
|
root /usr/local/web;
|
2021-11-15 22:24:54 +08:00
|
|
|
index index.html;
|
|
|
|
}
|
|
|
|
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
location = /50x.html {
|
|
|
|
root html;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|