Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user nobody;
- worker_processes 12;
- worker_rlimit_nofile 65536;
- error_log /var/log/nginx/error.log;
- pid /var/run/nginx.pid;
- events
- {
- worker_connections 10240;
- use epoll;
- }
- http
- {
- include mime.types;
- default_type application/octet-stream;
- access_log off;
- sendfile on;
- keepalive_timeout 30;
- tcp_nodelay on;
- server_tokens off;
- gzip on;
- gzip_http_version 1.1;
- gzip_vary on;
- gzip_comp_level 6;
- gzip_proxied any;
- gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
- gzip_buffers 16 8k;
- upstream backend {
- server unix:/dev/shm/.php-fpm/socket;
- server unix:/dev/shm/.php-fpm/socket2;
- }
- server
- {
- listen 80 default;
- root /www/php;
- error_page 404 = /404.html;
- location ~* ^.+.(jpg|jpeg|gif|png|css|js|ico|swf|xml|htm|html)$
- {
- expires 30d;
- access_log off;
- }
- location /
- {
- index index.html index.php;
- }
- location ~ \.php$
- {
- include fastcgi_params;
- fastcgi_pass backend;
- fastcgi_index index.php;
- fastcgi_send_timeout 30;
- fastcgi_read_timeout 30;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- location ~ /\.ht
- {
- deny all;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement