Well-Known Member
Jun 5, 2012
cPanel Access Level
Root Administrator

I have server with 6 core cpus, 8gb ram, 800GB HDD. I installed ApacheBooster Plugin. I know it can prevent ddos attack and make website load faster.

But i dont know how can do that. Who can give me some config of nginx or varnish is better?

There is default config of nignx.conf

user nobody;
worker_processes 2;
error_log logs/error.log info;
worker_rlimit_nofile 8192;
events {
worker_connections 1024;
use epoll;

http {
server_names_hash_max_size 2048;
server_names_hash_bucket_size 1024;

include mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 10;
gzip on;
gzip_vary on;
gzip_disable "MSIE [1-6]\.";
gzip_proxied any;
gzip_http_version 1.1;
gzip_min_length 1100;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_types text/plain text/xml text/css application/x-javascript application/xml image/png image/x-icon image/gif image/jpeg application/xml+rss text/javascript application/atom+xml;
ignore_invalid_headers on;
client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
connection_pool_size 256;
client_header_buffer_size 4k;
large_client_header_buffers 4 32k;
request_pool_size 4k;
output_buffers 4 32k;
postpone_output 1460;
proxy_temp_path /tmp/nginx_proxy/;
client_body_in_file_only on;
include "/usr/local/nginx/vhost/*.conf";