# ./custom-nginx.conf (on your host) server { listen 80; server_name localhost; root /usr/share/nginx/html; # Path INSIDE the container where site files will be index index.html; location / { try_files $uri $uri.html $uri/ =404; } }