Advertisement
Guest User

Untitled

a guest
Mar 14th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. user vagrant;
  2. worker_processes auto;
  3. error_log /var/log/nginx/error.log;
  4. pid /run/nginx.pid;
  5.  
  6. include /usr/share/nginx/modules/*.conf;
  7.  
  8. events {
  9.     worker_connections 1024;
  10. }
  11.  
  12. http {
  13.     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
  14.                       '$status $body_bytes_sent "$http_referer" '
  15.                       '"$http_user_agent" "$http_x_forwarded_for"';
  16.  
  17.     access_log  /var/log/nginx/access.log  main;
  18.  
  19.     sendfile            on;
  20.     tcp_nopush          on;
  21.     tcp_nodelay         on;
  22.     keepalive_timeout   65;
  23.     types_hash_max_size 2048;
  24.  
  25.     include             /etc/nginx/mime.types;
  26.     default_type        application/octet-stream;
  27.  
  28.     server {
  29.         listen       80;
  30.         listen       [::]:80;
  31.         server_name  _;
  32.         root         /usr/share/nginx/html;
  33.  
  34.         # Load configuration files for the default server block.
  35.         include /etc/nginx/default.d/*.conf;
  36.  
  37.         location / {
  38.         }
  39.  
  40.         error_page 404 /404.html;
  41.             location = /40x.html {
  42.         }
  43.  
  44.         error_page 500 502 503 504 /50x.html;
  45.             location = /50x.html {
  46.         }
  47.     }
  48.    
  49.     include /etc/nginx/conf.d/*.conf;
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement