MRatWork Forum by Mustafa Ramadhan
Language Specific Discussions => Indonesia Users => Topic started by: zenkul on 2013-03-11, 10:14:37
-
Mohon Petunjuk tweak config Nginx (proxy),
Saya mengambil file config dari https://github.com/perusio (https://github.com/perusio)
beberapa file tersebut saya tempatkan pada: "/etc/nginx"
kemudian file "nginx.conf" saya tambahkan beberapa text, hingga seperti ini user nginx;
worker_processes 4;
worker_rlimit_nofile 400000;
pid /var/run/nginx.pid;
events {
worker_connections 2048;
use epoll;
}
http {
add_header Cache-Control public;
server_names_hash_max_size 4096;
server_names_hash_bucket_size 512;
client_header_buffer_size 2k;
client_max_body_size 32M;
include '/etc/nginx/conf.d/*.conf';
include /etc/nginx/fastcgi.conf;
include upstream_phpcgi_tcp.conf;
include map_block_http_methods.conf;
include nginx_status_allowed_hosts.conf;
include map_cache.conf;
include fastcgi_microcache_zone.conf;
include /etc/nginx/sites-enabled/*;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_disable "msie6";
}
Pertanyaan : apakah ini tidak menyalahi prosedur, atau apakah ada cara lain yang lebih tepat ?
mohon koreksi
-
Bagian yang 'include' dan seterusnya sebagian sudah ter-declare di /home/nginx/conf/globals dan /etc/nginx/conf.d. Coba bandingkan dulu.
-
terima kasih Pak
include '/etc/nginx/conf.d/*.conf';
"nginx.conf" include tambahan dihapus, dan file pindah ke /etc/nginx/conf.d (hanya file yg tidak ditolak)
:roll: proses memeriksa dan membandingkan
yang penting nggak error dan makin nge - boost :lol: