Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user www www;
- worker_processes 1;
- error_log /var/log/nginx/error.log;
- pid /var/run/nginx.pid;
- events {
- worker_connections 10000;
- # multi_accept on;
- }
- http {
- ##
- # Basic Settings
- ##
- fastcgi_buffers 8 64k;
- fastcgi_buffer_size 128k;
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 65;
- types_hash_max_size 2048;
- client_max_body_size 100m;
- server_tokens off;
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- ##
- # Logging Settings
- ##
- access_log /var/log/nginx/access.log;
- error_log /var/log/nginx/error.log;
- ##
- # Gzip Settings
- ##
- gzip on;
- gzip_disable "msie6";
- gzip_vary on;
- gzip_proxied any;
- gzip_comp_level 6;
- gzip_buffers 16 8k;
- gzip_http_version 1.1;
- gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
- ##
- # Virtual Host Configs
- ##
- upstream php-fpm {
- server 127.0.0.1:54000;
- }
- include /etc/nginx/sites-enabled/*;
- proxy_cache off;
- map $scheme $server_https {
- default off;
- https on;
- }
- server {
- listen 80;
- server_name localhost;
- root /www/localhost/htdocs;
- ssi on;
- location / {
- index index.php index.html index.htm;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement