Guest User

error_page 404 /404.html; VS access_log off;

a guest
Feb 26th, 2012
65
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2. listen 80 default_server;
  3.  
  4. root /var/www;
  5.  
  6. access_log /var/log/nginx/default_access.log;
  7. error_log /var/log/nginx/default_error.log;
  8.  
  9. location / {
  10. try_files $uri $uri/ =404;
  11. }
  12.  
  13. error_page 404 /404.html;
  14. location /favicon.ico {
  15. access_log off;
  16. }
  17. }
RAW Paste Data