Guest User

error_page 404 /404.html; VS access_log off;

a guest
Feb 26th, 2012
70
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×