Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # this sets the user nginx will run as,
- #and the number of worker processes
- user nobody nogroup;
- worker_processes 1;
- # setup where nginx will log errors to
- # and where the nginx process id resides
- error_log /var/log/nginx/error.log;
- pid /var/run/nginx.pid;
- events {
- worker_connections 1024;
- # set to on if you have more than 1 worker_processes
- accept_mutex off;
- }
- http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- access_log /tmp/nginx.access.log combined;
- # use the kernel sendfile
- sendfile on;
- # prepend http headers before sendfile()
- tcp_nopush on;
- keepalive_timeout 65;
- tcp_nodelay on;
- gzip on;
- gzip_disable "MSIE [1-6]\.(?!.*SV1)";
- gzip_types text/plain text/html text/xml text/css
- text/comma-separated-values
- text/javascript application/x-javascript
- application/atom+xml;
- # Unicorn-Virtual-Hosts
- }
Add Comment
Please, Sign In to add comment