Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- PHP-FPM www pool ---
- [www]
- user = www-data
- group = www-data
- listen = 127.0.0.1:9000
- listen.backlog = 511
- listen.owner = www-data
- listen.group = www-data
- pm = static
- pm.max_children = 128
- pm.start_servers = 2
- pm.min_spare_servers = 1
- pm.max_spare_servers = 3
- pm.status_path = /status_fpm
- --- NGINX CONFIG ---
- user www-data;
- worker_processes auto;
- pid /run/nginx.pid;
- include /etc/nginx/modules-enabled/*.conf;
- events {
- use epoll;
- worker_connections 4096;
- multi_accept on;
- }
- http {
- ##
- # Basic Settings
- ##
- sendfile off;
- tcp_nopush off;
- tcp_nodelay on;
- keepalive_timeout 65;
- types_hash_max_size 2048;
- proxy_buffering off;
- proxy_buffer_size 128k;
- proxy_buffers 100 128k;
- # server_tokens off;
- # server_names_hash_bucket_size 64;
- # server_name_in_redirect off;
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- server_tokens off;
- ##
- # SSL Settings
- ##
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
- ssl_prefer_server_ciphers on;
- ##
- # Logging Settings
- ##
- access_log /var/log/nginx/access.log;
- error_log /var/log/nginx/error.log error;
- ##
- # 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/javascript text/xml application/xml application/xml+rss text/javascript;
- ##
- # Virtual Host Configs
- ##
- include /etc/nginx/conf.d/*.conf;
- include /etc/nginx/sites-enabled/*;
- }
- --- VHOSTS CONFIG ---
- index index.php index.html index.htm;
- charset utf-8;
- location / {
- try_files $uri $uri/ /index.php?$query_string;
- add_header 'Access-Control-Allow-Origin' *;
- }
- location = /favicon.ico { access_log off; log_not_found off; }
- location = /robots.txt { access_log off; log_not_found off; }
- sendfile off;
- client_max_body_size 100m;
- location ~ \.php$ {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- location ~ /\.ht {
- deny all;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement