Mohon Petunjuk tweak config Nginx (proxy),
Saya mengambil file config dari
https://github.com/perusiobeberapa 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