-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
chenwei
committed
Sep 7, 2024
1 parent
67297fa
commit a880235
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
worker_processes 1;#global inlinecomment | ||
events { | ||
worker_connections 1024;#event inlinecomment | ||
} | ||
http { | ||
include mime.types;#http inlinecomment | ||
default_type application/octet-stream; | ||
sendfile on; | ||
keepalive_timeout 65; | ||
server { | ||
listen 80;#server inlinecomment | ||
server_name localhost; | ||
location / { | ||
root /usr/share/nginx/html;#location inlinecomment | ||
index index.html index.htm; | ||
} | ||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root /usr/share/nginx/html; | ||
} | ||
} | ||
server { | ||
listen 8000; | ||
location / { | ||
root html; | ||
index index.html index.htm; | ||
} | ||
} | ||
} |