nginx.conf 559 B

123456789101112131415161718192021222324252627
  1. events{}
  2. http {
  3. types {
  4. module js;
  5. }
  6. include /etc/nginx/mime.types;
  7. server {
  8. listen 80;
  9. server_name localhost;
  10. root /usr/share/nginx/html/;
  11. location / {
  12. # First attempt to serve request as file, then
  13. # as directory, then redirect to index(angular) if no file found.
  14. try_files $uri $uri/ /index.html;
  15. }
  16. # redirect server error pages to the static page /50x.html
  17. #
  18. error_page 500 502 503 504 /50x.html;
  19. location = /50x.html {
  20. root /usr/share/nginx/html;
  21. }
  22. }
  23. }