default.conf 363 B

12345678910111213141516
  1. server {
  2. listen 80;
  3. server_name localhost;
  4. charset utf-8;
  5. location / {
  6. root /usr/share/nginx/html;
  7. try_files $uri $uri/ /index.html;
  8. index index.html index.htm;
  9. }
  10. #error_page 404 /404.html;
  11. error_page 500 502 503 504 /50x.html;
  12. location = /50x.html {
  13. root html;
  14. }
  15. }