server { listen 8380; listen [::]:8380; server_name _; root /usr/share/nginx/html; index index.html; absolute_redirect off; port_in_redirect off; location / { # Serve directory index files without triggering a 301 slash redirect. try_files $uri $uri/index.html /index.html; } }