server { listen ${NGINX_PORT}; server_name ${BASE_URL}; root /usr/share/nginx/html/public; index index.html; error_page 404 /404.html; location / { try_files $uri $uri.html $uri/ =404; } }