Guest User

Untitled

a guest
Jun 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name _;
  4. access_log /var/log/nginx/backfoo.access.log;
  5. error_log /var/log/nginx/backfoo.error.log;
  6.  
  7. location / {
  8. root /var/www/nginx-default;
  9. autoindex on;
  10. index index.html index.htm;
  11. }
  12.  
  13. location /doc {
  14. root /usr/share/doc;
  15. autoindex on;
  16. }
  17.  
  18. location /repo {
  19. root /home/repo;
  20. autoindex on;
  21. }
  22.  
  23. error_page 500 502 503 504 /50x.html;
  24. location = /50x.html {
  25. root /var/www/nginx-default;
  26. }
  27. }
Add Comment
Please, Sign In to add comment