diff --git a/Projects/kompose/docs/nginx.conf b/Projects/kompose/docs/nginx.conf index 2c17daa7..54abe9e4 100644 --- a/Projects/kompose/docs/nginx.conf +++ b/Projects/kompose/docs/nginx.conf @@ -1,13 +1,11 @@ -server { - listen 80; - listen [::]:80; - server_name localhost; - index index.html index.htm; +http { + server { + listen 80 default_server; - location /kompose { - alias /usr/share/nginx/html/kompose; + root /usr/share/nginx/html; + + location / { try_files $uri $uri/ /index.html; } - - # other nginx default stuff, never changed these + } }