Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Even doing this, Nginx will still try to create the default error file, and
- # log a non-fatal error when it fails. After that things will work, however.
- error_log logs/error.log;
- worker_processes 1;
- events {
- worker_connections 256;
- use epoll;
- multi_accept on;
- }
- pid nginx_user.pid;
- http {
- # Set an array of temp and cache file options that will otherwise default to
- # restricted locations accessible only to root.
- client_body_temp_path tmp/client_body;
- fastcgi_temp_path tmp/fastcgi_temp;
- proxy_temp_path tmp/proxy_temp;
- scgi_temp_path tmp/scgi_temp;
- uwsgi_temp_path tmp/uwsgi_temp;
- access_log logs/access.log;
- error_log logs/error.log info;
- log_format main '$remote_addr - $remote_user [$time_local] $status '
- '"$request" $body_bytes_sent "$http_referer" '
- '"$http_user_agent" "$http_x_forwarded_for"';
- include conf/mime.types;
- index index.html index.htm index.php;
- default_type application/octet-stream;
- aio threads;
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- server_tokens off;
- proxy_buffering off;
- proxy_buffer_size 128k;
- proxy_buffers 100 128k;
- server_names_hash_bucket_size 128;
- client_body_timeout 12;
- client_header_timeout 12;
- keepalive_requests 10;
- keepalive_timeout 60 60;
- send_timeout 30;
- client_max_body_size 0;
- client_body_buffer_size 128M;
- include conf.d/*.conf;
- include sites-enabled/*;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement