diff --git a/nginx.conf b/nginx.conf index e96a8f8..42be402 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,9 +1,16 @@ -server { - listen 80; +http { + server { + listen 80; + server_name localhost; - location / { - root /usr/share/nginx/html; - # index index.html; - try_files $uri $uri/ /index.html; + location / { + root /usr/share/nginx/html; + index index.html; + try_files $uri $uri/ /index.html; + } } +} + +events { + worker_connections 1024; } \ No newline at end of file