Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 20:15:26

Author Topic: Mohon Petunjuk Tweak Custom NGINX  (Read 2869 times)

0 Members and 1 Guest are viewing this topic.

Offline zenkul

  • Global Moderator
  • Master
  • *****
  • Posts: 383
  • Karma: +3/-0
    • View Profile
    • home & decor
Mohon Petunjuk Tweak Custom NGINX
« on: 2013-03-11, 10:14:37 »
Mohon Petunjuk tweak config Nginx (proxy),
Saya mengambil file config dari https://github.com/perusio

beberapa file tersebut saya tempatkan pada: "/etc/nginx"

kemudian file "nginx.conf" saya tambahkan beberapa text, hingga seperti ini
Code: [Select]
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
« Last Edit: 1970-01-01, 01:00:00 by Guest »
easy, secure and speed up web panel ===> Kloxo-MR

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Mohon Petunjuk Tweak Custom NGINX
« Reply #1 on: 2013-03-11, 11:26:27 »
Bagian yang 'include' dan seterusnya sebagian sudah ter-declare di /home/nginx/conf/globals dan /etc/nginx/conf.d. Coba bandingkan dulu.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zenkul

  • Global Moderator
  • Master
  • *****
  • Posts: 383
  • Karma: +3/-0
    • View Profile
    • home & decor
Re: Mohon Petunjuk Tweak Custom NGINX
« Reply #2 on: 2013-03-11, 12:37:53 »
terima kasih Pak
Code: [Select]
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:
« Last Edit: 1970-01-01, 01:00:00 by Guest »
easy, secure and speed up web panel ===> Kloxo-MR

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.057 seconds with 18 queries.

web stats analysis