default.conf 296 B

123456789101112131415
  1. server {
  2. listen 80;
  3. server_name localhost;
  4. root /usr/share/nginx/html;
  5. auth_basic off;
  6. location / {
  7. try_files $uri $uri/ /index.html;
  8. }
  9. # 404 if a file is requested (so the main app isn't served)
  10. location ~ ^.+\..+$ {
  11. try_files $uri =404;
  12. }
  13. }