default.conf 418 B

12345678910111213141516171819202122
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. server_name localhost;
  5. #charset koi8-r;
  6. #access_log /var/log/nginx/host.access.log main;
  7. location / {
  8. root /usr/share/nginx/html;
  9. try_files $uri $uri/ @router;
  10. index index.html index.htm;
  11. }
  12. location @router {
  13. rewrite ^.*$ /index.html last;
  14. }
  15. location = /50x.html {
  16. root /usr/share/nginx/html;
  17. }
  18. }