nginx.conf 426 B

1234567891011121314151617181920
  1. server {
  2. if ($request_method = HEAD) {
  3. return 200;
  4. }
  5. location / {
  6. alias /usr/share/nginx/html/;
  7. index index.html index.htm;
  8. try_files $uri $uri/ /index.html;
  9. }
  10. access_log /var/log/nginx/access.log main;
  11. error_log /var/log/nginx/error.log error;
  12. error_page 500 502 503 504 /50x.html;
  13. location = /50x.html {
  14. root /usr/share/nginx/html;
  15. }
  16. }