ericharth

default_server.conf

Jan 7th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #
  2. # The default server
  3. #
  4. server {
  5. listen *:80 default_server;
  6.  
  7. access_log /var/log/nginx/default/default.access.log main;
  8.  
  9. location / {
  10. root /var/www/html/default;
  11. index index.html index.htm;
  12. }
  13.  
  14. error_page 404 /404.html;
  15. location = /404.html {
  16. root /usr/share/nginx/html;
  17. }
  18.  
  19. # redirect server error pages to the static page /50x.html
  20. #
  21. error_page 500 502 503 504 /50x.html;
  22. location = /50x.html {
  23. root /usr/share/nginx/html;
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment