server { listen 80; listen [::]:80; root /home/pi/gallery; server_name localhost; autoindex off; # index.html fallback location / { try_files $uri $uri/ /index.html; } }