Skip to content

Commit fd9e92e

Browse files
authored
chore : update nginx.conf
1 parent 1d3a967 commit fd9e92e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

nginx/nginx.conf

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
user nginx;
2+
worker_processes auto;
3+
4+
error_log /var/log/nginx/error.log warn;
5+
pid /var/run/nginx.pid;
6+
7+
events {
8+
worker_connections 1024;
9+
}
10+
111
http {
212
include /etc/nginx/mime.types;
313
default_type application/octet-stream;
@@ -10,7 +20,9 @@ http {
1020

1121
# 정적 파일 서빙
1222
location / {
13-
try_files $uri $uri/ /index.html;
23+
root /usr/share/nginx/html;
24+
index index.html;
25+
try_files $uri /index.html;
1426
}
1527

1628
error_page 404 /index.html;

0 commit comments

Comments
 (0)