Advertisement
Guest User

/etc/nginx/nginx.conf

a guest
May 14th, 2016
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None
  1. # For more information on configuration, see:
  2. # * Official English Documentation: http://nginx.org/en/docs/
  3. # * Official Russian Documentation: http://nginx.org/ru/docs/
  4.  
  5. user nginx;
  6. worker_processes auto;
  7. error_log /var/log/nginx/error.log;
  8. pid /run/nginx.pid;
  9.  
  10. events {
  11. worker_connections 1024;
  12. }
  13.  
  14. http {
  15. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  16. '$status $body_bytes_sent "$http_referer" '
  17. '"$http_user_agent" "$http_x_forwarded_for"';
  18.  
  19. access_log /var/log/nginx/access.log main;
  20.  
  21. sendfile on;
  22. tcp_nopush on;
  23. tcp_nodelay on;
  24. keepalive_timeout 65;
  25. types_hash_max_size 2048;
  26.  
  27. include /etc/nginx/mime.types;
  28. default_type application/octet-stream;
  29.  
  30. # Load modular configuration files from the /etc/nginx/conf.d directory.
  31. # See http://nginx.org/en/docs/ngx_core_module.html#include
  32. # for more information.
  33. include /etc/nginx/conf.d/*.conf;
  34.  
  35. server {
  36. listen 80 default_server;
  37. listen [::]:80 default_server;
  38. server_name _;
  39. root /usr/share/nginx/html;
  40.  
  41. # Load configuration files for the default server block.
  42. include /etc/nginx/default.d/*.conf;
  43.  
  44. location / {
  45. }
  46.  
  47. error_page 404 /404.html;
  48. location = /40x.html {
  49. }
  50.  
  51. error_page 500 502 503 504 /50x.html;
  52. location = /50x.html {
  53. }
  54. }
  55. }
Advertisement
RAW Paste Data Copied
Advertisement