Guest User

Untitled

a guest
Jan 15th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. user nginx;
  2. worker_processes 1;
  3. worker_rlimit_nofile 65536;
  4.  
  5. error_log /var/log/nginx/error.log warn;
  6. pid /var/run/nginx.pid;
  7.  
  8.  
  9. events {
  10. worker_connections 2048;
  11. }
  12.  
  13.  
  14. http {
  15. include /etc/nginx/mime.types;
  16. default_type application/octet-stream;
  17.  
  18. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  19. '$status $body_bytes_sent "$http_referer" '
  20. '"$http_user_agent" "$http_x_forwarded_for"';
  21.  
  22. #Disable IFRAME
  23. add_header X-Frame-Options SAMEORIGIN;
  24.  
  25. #Prevent Cross-site scripting (XSS) attacks
  26. add_header X-XSS-Protection "1; mode=block";
  27.  
  28. #Prevent MIME-sniffing
  29. add_header X-Content-Type-Options nosniff;
  30.  
  31. access_log off;
Advertisement
Add Comment
Please, Sign In to add comment