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-05-11, 23:10:40

Author Topic: [ASK] cara disable error.log nginx  (Read 11168 times)

0 Members and 1 Guest are viewing this topic.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: [ASK] cara disable error.log nginx
« Reply #15 on: 2015-01-20, 06:06:45 »
custom.~lxcenter.conf itu dicopy ke file /etc/nginx/conf.d/~lxcenter.conf. Jika di  /etc/nginx/conf.d/ ada custom.~lxcenter.conf disamping ~lxcenter.conf maka akan bikin kacau!.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline GentZu

  • Senior Member
  • *
  • Posts: 323
  • Karma: +0/-0
  • Gender: Male
  • yare yare...
    • View Profile
Re: [ASK] cara disable error.log nginx
« Reply #16 on: 2015-01-20, 06:23:57 »
custom.~lxcenter.conf itu dicopy ke file /etc/nginx/conf.d/~lxcenter.conf. Jika di  /etc/nginx/conf.d/ ada custom.~lxcenter.conf disamping ~lxcenter.conf maka akan bikin kacau!.
nah bukannya custom.~lxcenter.conf itu isinya copas dr ~lxcenter.conf, kemudian ada bbrp code yang beda/diedit?

maka dari itu tadi di server ada file custom.~lxcenter.conf dan ~lxcenter.conf di folder /etc/nginx/conf.d/ seperti halnya saya buat file custom.php-fpm_standard.conf, di folder /opt/configs/nginx/conf/globals masih ada juga file php-fpm_standard.conf yang asli...

jd yg di maksud pak mustafa isinya di samakan? saya belum menangkap apa yg di sampaikan...

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: [ASK] cara disable error.log nginx
« Reply #17 on: 2015-01-20, 06:54:37 »
Begini. Jika anda menjalankan fixweb maka akan diproses defaults.conf.tpl dan domains.conf.tpl. Sedangkan file yang ada di /etc/nginx diproses melalui cleanup. Baik fixweb dan cleanup akan mencari apakah ada file custom dan bila ada akan memproses-nya (jika ada custom.~lxcenter.conf maka akan digunakan/diproses daripada file ~lxcenter.conf). Dalam kasus anda, tidak perlu dilakukan cleanup (dimana salahsatunya akan meng-copy custom.~lxcenter.conf ke /etc/nginx/conf.d/~lxcenter.conf) dan cukup dilakukan secara manual.

Begitu.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline GentZu

  • Senior Member
  • *
  • Posts: 323
  • Karma: +0/-0
  • Gender: Male
  • yare yare...
    • View Profile
Re: [ASK] cara disable error.log nginx
« Reply #18 on: 2015-01-20, 09:54:51 »
nahhh jadi dalam file /etc/nginx/conf.d/ ada 2 file kan? custom.~lxcenter.conf dan ~lxcenter.conf?
terus yg di /opt/configs/nginx/etc/conf.d apakah juga sama?

tadi saya pahami dr sini http://forum.mratwork.com/indonesia-users/%28ask%29-cara-disable-error-log-nginx/msg39795/#msg39795
harus bikin file  custom.~lxcenter.conf  di dua foler yaitu  /etc/nginx/conf.d/ dan /opt/configs/nginx/etc/conf.d

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: [ASK] cara disable error.log nginx
« Reply #19 on: 2015-01-20, 12:16:55 »
Di /opt/configs/nginx/etc/conf.d ada custom.~lxcenter.conf dan ~lxenter.conf. Di /etc/nginx/conf.d hanya ada ~lxenter.conf (yang dalam kasus anda adalah copy dari /opt/configs/nginx/etc/conf.d/custom.~lxcenter.conf)
« Last Edit: 2015-01-21, 20:02:16 by MRatWork »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline GentZu

  • Senior Member
  • *
  • Posts: 323
  • Karma: +0/-0
  • Gender: Male
  • yare yare...
    • View Profile
Re: [ASK] cara disable error.log nginx
« Reply #20 on: 2015-01-21, 15:39:55 »
Di /opt/configs/nginx/etc/conf.d ada custom.~lxcenter.conf dan ~lxenter.conf. Di /etc/nginx/conf.d hanya ada ~lxenter.conf (yang dalam kasus anda adalah copy dari /opt/configs/nginx/etc/conf.d/custom.~lxcenter.conf)
nahhh kalau ini lebih jelas penjelasanya, tapi anehnya error.log kok masih jalan terus ya pak?
« Last Edit: 2015-01-21, 20:02:32 by MRatWork »

Offline GentZu

  • Senior Member
  • *
  • Posts: 323
  • Karma: +0/-0
  • Gender: Male
  • yare yare...
    • View Profile
Re: [ASK] cara disable error.log nginx
« Reply #21 on: 2015-01-24, 19:00:53 »
[SOLVED]
ternyata caranya bukan cuman di kasih tanda # doang
tapi di tambah code access_log off; error_log off;
Code: [Select]
    #access_log /var/log/nginx/access.log main;
    access_log off;
    #error_log /var/log/nginx/error.log warn;
    error_log off;

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.071 seconds with 21 queries.

web stats analysis