nginx.conf 220 B

1234567891011121314
  1. server {
  2. listen 80;
  3. listen 443 ssl http2;
  4. server_name %HOSTS%;
  5. root %ROOT%;
  6. index index.html;
  7. rewrite ^/(.*)(/|/index|\.html)$ /$1 permanent;
  8. location / {
  9. try_files $uri $uri.html $uri/index.html /404;
  10. }
  11. }