MRatWork Forum by Mustafa Ramadhan - [ASK] cara disable error.log nginx

Sponsor:
Server and Web Integrator
Link:
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:

MRatWork Forum | Please login or register. | 2017-11-07, 23:48:26

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- [ASK] cara disable error.log nginx

« previous next »

- Print

Pages: [1] 2 Go Down

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

0 Members and 1 Guest are viewing this topic.

#### GentZu

- Senior Member
- Posts: 323
- Karma: +0/-0
- Gender:
- yare yare...

##### [ASK] cara disable error.log nginx

« on: 2015-01-18, 22:49:41 »
permasalahan: ntah kenapa kalau pakek nginx only error.log-nya sehari bisa tembus lebih dr 1GB...
isinya hampir mirip semua seperti ini:
Code: [Select]

    2015/01/18 02:29:07 [crit] 9015#0: *23 open() "/home/httpd/domain.net/stats/domain.net-custom_log" failed (13: Permission denied) while logging request, client: 95.138.133.173, server: domain.net, request: "GET /path/file.html HTTP/1.1", upstream: "fastcgi://unix:/opt/configs/php-fpm/sock/user.sock", host: "www.domain.net"

padahal file domainnet-custom_log udah exist dg chmod 664
nah bagimana cara disable hanya error.lognya saja? untuk access.log tidak ada masalah...
sudah saya cari2 confignya tidak ketemu tempatnya...
thanks
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: [ASK] cara disable error.log nginx

« Reply #1 on: 2015-01-19, 00:07:15 »
Coba jalankan 'chown 777 /home/httpd/domain.net/stats/'. Bisa jadi permission denied karena berbeda ownership.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### GentZu

- Senior Member
- Posts: 323
- Karma: +0/-0
- Gender:
- yare yare...

##### Re: [ASK] cara disable error.log nginx

« Reply #2 on: 2015-01-19, 04:10:29 »
Quote from: MRatWork on 2015-01-19, 00:07:15

> Coba jalankan 'chown 777 /home/httpd/domain.net/stats/'. Bisa jadi permission denied karena berbeda ownership.

apakah aman kalau kalau di chmod 777?
kalau sekalian cara disable bagaimana?
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: [ASK] cara disable error.log nginx

« Reply #3 on: 2015-01-19, 05:20:30 »
Secara umum aman karena lokasinya berbeda tempat dengan websitenya.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### GentZu

- Senior Member
- Posts: 323
- Karma: +0/-0
- Gender:
- yare yare...

##### Re: [ASK] cara disable error.log nginx

« Reply #4 on: 2015-01-19, 07:08:55 »
Quote from: MRatWork on 2015-01-19, 05:20:30

> Secara umum aman karena lokasinya berbeda tempat dengan websitenya.

bukannya nanti kalau di cleanup atau fix-chownchmod akan balik lg chmodnya?
kalau disable permanen gimana pak caranya?
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: [ASK] cara disable error.log nginx

« Reply #5 on: 2015-01-19, 08:43:04 »
Fix-chownchmod tidak termasuk men-fix directory /home/httpd/<domain>/stats untuk chmod-nya.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### GentZu

- Senior Member
- Posts: 323
- Karma: +0/-0
- Gender:
- yare yare...

##### Re: [ASK] cara disable error.log nginx

« Reply #6 on: 2015-01-19, 09:26:57 »
Quote from: MRatWork on 2015-01-19, 08:43:04

> Fix-chownchmod tidak termasuk men-fix directory /home/httpd/<domain>/stats untuk chmod-nya.

sepertinya kalau di chmod 77 sudah gk ada error seperti di atas pak, tapi sayang ingin disable sekalian error.log-nya kalau access.log biarin aja...
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: [ASK] cara disable error.log nginx

« Reply #7 on: 2015-01-19, 10:55:11 »
Anda harus copy /opt/configs/nginx/tpl/domains.conf.tpl ke custom.domains.conf.tpl. Begitu juga defaults.conf.tpl. Setelah itu, ubah 'error_log' ke '#error_log'. Kemudian jalankan 'sh /script/fixweb; sh /script/restart-web'.
Rasanya anda pakai Kloxo-MR 6.5.0 karena pada 7.0.0 errorlog sudah di-disable.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### GentZu

- Senior Member
- Posts: 323
- Karma: +0/-0
- Gender:
- yare yare...

##### Re: [ASK] cara disable error.log nginx

« Reply #8 on: 2015-01-19, 11:58:19 »
Quote from: MRatWork on 2015-01-19, 10:55:11

> Anda harus copy /opt/configs/nginx/tpl/domains.conf.tpl ke custom.domains.conf.tpl. Begitu juga defaults.conf.tpl. Setelah itu, ubah 'error_log' ke '#error_log'. Kemudian jalankan 'sh /script/fixweb; sh /script/restart-web'.
> Rasanya anda pakai Kloxo-MR 6.5.0 karena pada 7.0.0 errorlog sudah di-disable.

saya menggunakan versi7 dengan build date sama dengan forum ini...
dan anehnya saya serach code 'error_log' tidak ada sama sekali pada kedua file tpl tersebut...
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: [ASK] cara disable error.log nginx

« Reply #9 on: 2015-01-19, 18:49:58 »
Pada versi 7, logic-nya ada di defaults.conf dan file stats akan berupa stats_awstats, stats_none dan stats_webalizer.conf dimana akan dicopy ke stats.conf tergantung options-nya (misal pakai proxy atau tidak; awstats atau tidak). Maka, jika pilihan anda adalah awstats dan kemudian lakukan copy stats_awstats.conf ke custom.stats_awstats.conf.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### GentZu

- Senior Member
- Posts: 323
- Karma: +0/-0
- Gender:
- yare yare...

##### Re: [ASK] cara disable error.log nginx

« Reply #10 on: 2015-01-19, 20:35:36 »
sepertinya ada salah komunikasi di sini, yang saya maksud adalah error.log nginx itu tempatnya ada /var/log/nginx/error.log
kalau yg error_log yg dimaksud pak mustafa di config memang sudah nonaktif
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: [ASK] cara disable error.log nginx

« Reply #11 on: 2015-01-19, 21:47:53 »
Buat custom.~lxcenter.conf dari ~lxcenter.conf di /opt/configs/nginx/etc/conf.d. Sekalian copy yang custom.~lxcenter.conf ke /etc/nginx/conf.d/~lxcenter.conf
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### GentZu

- Senior Member
- Posts: 323
- Karma: +0/-0
- Gender:
- yare yare...

##### Re: [ASK] cara disable error.log nginx

« Reply #12 on: 2015-01-20, 03:29:01 »
ko
Quote from: MRatWork on 2015-01-19, 21:47:53

> Buat custom.~lxcenter.conf dari ~lxcenter.conf di /opt/configs/nginx/etc/conf.d. Sekalian copy yang custom.~lxcenter.conf ke /etc/nginx/conf.d/~lxcenter.conf

k malah error ya pak saya tambahin #error_log
errornya seperti ini:
Code: [Select]

     sh /script/restart-web -y

    nginx: [warn] duplicate extension "html", content type: "text/html", previous content type: "text/html" in /etc/nginx/mime.types:3
    nginx: [warn] duplicate extension "htm", content type: "text/html", previous content type: "text/html" in /etc/nginx/mime.types:3
    nginx: [warn] duplicate extension "shtml", content type: "text/html", previous content type: "text/html" in /etc/nginx/mime.types:3
    nginx: [warn] duplicate extension "css", content type: "text/css", previous content type: "text/css" in /etc/nginx/mime.types:4
    nginx: [warn] duplicate extension "xml", content type: "text/xml", previous content type: "text/xml" in /etc/nginx/mime.types:5
    nginx: [warn] duplicate extension "gif", content type: "image/gif", previous content type: "image/gif" in /etc/nginx/mime.types:6
    nginx: [warn] duplicate extension "jpeg", content type: "image/jpeg", previous content type: "image/jpeg" in /etc/nginx/mime.types:7
    nginx: [warn] duplicate extension "jpg", content type: "image/jpeg", previous content type: "image/jpeg" in /etc/nginx/mime.types:7
    nginx: [warn] duplicate extension "js", content type: "application/javascript", previous content type: "application/javascript" in /etc/nginx/mime.types:8
    nginx: [warn] duplicate extension "atom", content type: "application/atom+xml", previous content type: "application/atom+xml" in /etc/nginx/mime.types:9
    nginx: [warn] duplicate extension "rss", content type: "application/rss+xml", previous content type: "application/rss+xml" in /etc/nginx/mime.types:10
    nginx: [warn] duplicate extension "mml", content type: "text/mathml", previous content type: "text/mathml" in /etc/nginx/mime.types:12
    nginx: [warn] duplicate extension "txt", content type: "text/plain", previous content type: "text/plain" in /etc/nginx/mime.types:13
    nginx: [warn] duplicate extension "jad", content type: "text/vnd.sun.j2me.app-descriptor", previous content type: "text/vnd.sun.j2me.app-descriptor" in /etc/nginx/mime.types:14
    nginx: [warn] duplicate extension "wml", content type: "text/vnd.wap.wml", previous content type: "text/vnd.wap.wml" in /etc/nginx/mime.types:15
    nginx: [warn] duplicate extension "htc", content type: "text/x-component", previous content type: "text/x-component" in /etc/nginx/mime.types:16
    nginx: [warn] duplicate extension "png", content type: "image/png", previous content type: "image/png" in /etc/nginx/mime.types:18
    nginx: [warn] duplicate extension "tif", content type: "image/tiff", previous content type: "image/tiff" in /etc/nginx/mime.types:19
    nginx: [warn] duplicate extension "tiff", content type: "image/tiff", previous content type: "image/tiff" in /etc/nginx/mime.types:19
    nginx: [warn] duplicate extension "wbmp", content type: "image/vnd.wap.wbmp", previous content type: "image/vnd.wap.wbmp" in /etc/nginx/mime.types:20
    nginx: [warn] duplicate extension "ico", content type: "image/x-icon", previous content type: "image/x-icon" in /etc/nginx/mime.types:21
    nginx: [warn] duplicate extension "jng", content type: "image/x-jng", previous content type: "image/x-jng" in /etc/nginx/mime.types:22
    nginx: [warn] duplicate extension "bmp", content type: "image/x-ms-bmp", previous content type: "image/x-ms-bmp" in /etc/nginx/mime.types:23
    nginx: [warn] duplicate extension "svg", content type: "image/svg+xml", previous content type: "image/svg+xml" in /etc/nginx/mime.types:24
    nginx: [warn] duplicate extension "svgz", content type: "image/svg+xml", previous content type: "image/svg+xml" in /etc/nginx/mime.types:24
    nginx: [warn] duplicate extension "webp", content type: "image/webp", previous content type: "image/webp" in /etc/nginx/mime.types:25
    nginx: [warn] duplicate extension "woff", content type: "application/font-woff", previous content type: "application/font-woff" in /etc/nginx/mime.types:27
    nginx: [warn] duplicate extension "jar", content type: "application/java-archive", previous content type: "application/java-archive" in /etc/nginx/mime.types:28
    nginx: [warn] duplicate extension "war", content type: "application/java-archive", previous content type: "application/java-archive" in /etc/nginx/mime.types:28
    nginx: [warn] duplicate extension "ear", content type: "application/java-archive", previous content type: "application/java-archive" in /etc/nginx/mime.types:28
    nginx: [warn] duplicate extension "json", content type: "application/json", previous content type: "application/json" in /etc/nginx/mime.types:29
    nginx: [warn] duplicate extension "hqx", content type: "application/mac-binhex40", previous content type: "application/mac-binhex40" in /etc/nginx/mime.types:30
    nginx: [warn] duplicate extension "doc", content type: "application/msword", previous content type: "application/msword" in /etc/nginx/mime.types:31
    nginx: [warn] duplicate extension "pdf", content type: "application/pdf", previous content type: "application/pdf" in /etc/nginx/mime.types:32
    nginx: [warn] duplicate extension "ps", content type: "application/postscript", previous content type: "application/postscript" in /etc/nginx/mime.types:33
    nginx: [warn] duplicate extension "eps", content type: "application/postscript", previous content type: "application/postscript" in /etc/nginx/mime.types:33
    nginx: [warn] duplicate extension "ai", content type: "application/postscript", previous content type: "application/postscript" in /etc/nginx/mime.types:33
    nginx: [warn] duplicate extension "rtf", content type: "application/rtf", previous content type: "application/rtf" in /etc/nginx/mime.types:34
    nginx: [warn] duplicate extension "m3u8", content type: "application/vnd.apple.mpegurl", previous content type: "application/vnd.apple.mpegurl" in /etc/nginx/mime.types:35
    nginx: [warn] duplicate extension "xls", content type: "application/vnd.ms-excel", previous content type: "application/vnd.ms-excel" in /etc/nginx/mime.types:36
    nginx: [warn] duplicate extension "eot", content type: "application/vnd.ms-fontobject", previous content type: "application/vnd.ms-fontobject" in /etc/nginx/mime.types:37
    nginx: [warn] duplicate extension "ppt", content type: "application/vnd.ms-powerpoint", previous content type: "application/vnd.ms-powerpoint" in /etc/nginx/mime.types:38
    nginx: [warn] duplicate extension "wmlc", content type: "application/vnd.wap.wmlc", previous content type: "application/vnd.wap.wmlc" in /etc/nginx/mime.types:39
    nginx: [warn] duplicate extension "kml", content type: "application/vnd.google-earth.kml+xml", previous content type: "application/vnd.google-earth.kml+xml" in /etc/nginx/mime.types:40
    nginx: [warn] duplicate extension "kmz", content type: "application/vnd.google-earth.kmz", previous content type: "application/vnd.google-earth.kmz" in /etc/nginx/mime.types:41
    nginx: [warn] duplicate extension "7z", content type: "application/x-7z-compressed", previous content type: "application/x-7z-compressed" in /etc/nginx/mime.types:42
    nginx: [warn] duplicate extension "cco", content type: "application/x-cocoa", previous content type: "application/x-cocoa" in /etc/nginx/mime.types:43
    nginx: [warn] duplicate extension "jardiff", content type: "application/x-java-archive-diff", previous content type: "application/x-java-archive-diff" in /etc/nginx/mime.types:44
    nginx: [warn] duplicate extension "jnlp", content type: "application/x-java-jnlp-file", previous content type: "application/x-java-jnlp-file" in /etc/nginx/mime.types:45
    nginx: [warn] duplicate extension "run", content type: "application/x-makeself", previous content type: "application/x-makeself" in /etc/nginx/mime.types:46
    nginx: [warn] duplicate extension "pl", content type: "application/x-perl", previous content type: "application/x-perl" in /etc/nginx/mime.types:47
    nginx: [warn] duplicate extension "pm", content type: "application/x-perl", previous content type: "application/x-perl" in /etc/nginx/mime.types:47
    nginx: [warn] duplicate extension "prc", content type: "application/x-pilot", previous content type: "application/x-pilot" in /etc/nginx/mime.types:48
    nginx: [warn] duplicate extension "pdb", content type: "application/x-pilot", previous content type: "application/x-pilot" in /etc/nginx/mime.types:48
    nginx: [warn] duplicate extension "rar", content type: "application/x-rar-compressed", previous content type: "application/x-rar-compressed" in /etc/nginx/mime.types:49
    nginx: [warn] duplicate extension "rpm", content type: "application/x-redhat-package-manager", previous content type: "application/x-redhat-package-manager" in /etc/nginx/mime.types:50
    nginx: [warn] duplicate extension "sea", content type: "application/x-sea", previous content type: "application/x-sea" in /etc/nginx/mime.types:51
    nginx: [warn] duplicate extension "swf", content type: "application/x-shockwave-flash", previous content type: "application/x-shockwave-flash" in /etc/nginx/mime.types:52
    nginx: [warn] duplicate extension "sit", content type: "application/x-stuffit", previous content type: "application/x-stuffit" in /etc/nginx/mime.types:53
    nginx: [warn] duplicate extension "tcl", content type: "application/x-tcl", previous content type: "application/x-tcl" in /etc/nginx/mime.types:54
    nginx: [warn] duplicate extension "tk", content type: "application/x-tcl", previous content type: "application/x-tcl" in /etc/nginx/mime.types:54
    nginx: [warn] duplicate extension "der", content type: "application/x-x509-ca-cert", previous content type: "application/x-x509-ca-cert" in /etc/nginx/mime.types:55
    nginx: [warn] duplicate extension "pem", content type: "application/x-x509-ca-cert", previous content type: "application/x-x509-ca-cert" in /etc/nginx/mime.types:55
    nginx: [warn] duplicate extension "crt", content type: "application/x-x509-ca-cert", previous content type: "application/x-x509-ca-cert" in /etc/nginx/mime.types:55
    nginx: [warn] duplicate extension "xpi", content type: "application/x-xpinstall", previous content type: "application/x-xpinstall" in /etc/nginx/mime.types:56
    nginx: [warn] duplicate extension "xhtml", content type: "application/xhtml+xml", previous content type: "application/xhtml+xml" in /etc/nginx/mime.types:57
    nginx: [warn] duplicate extension "xspf", content type: "application/xspf+xml", previous content type: "application/xspf+xml" in /etc/nginx/mime.types:58
    nginx: [warn] duplicate extension "zip", content type: "application/zip", previous content type: "application/zip" in /etc/nginx/mime.types:59
    nginx: [warn] duplicate extension "bin", content type: "application/octet-stream", previous content type: "application/octet-stream" in /etc/nginx/mime.types:61
    nginx: [warn] duplicate extension "exe", content type: "application/octet-stream", previous content type: "application/octet-stream" in /etc/nginx/mime.types:61
    nginx: [warn] duplicate extension "dll", content type: "application/octet-stream", previous content type: "application/octet-stream" in /etc/nginx/mime.types:61
    nginx: [warn] duplicate extension "deb", content type: "application/octet-stream", previous content type: "application/octet-stream" in /etc/nginx/mime.types:62
    nginx: [warn] duplicate extension "dmg", content type: "application/octet-stream", previous content type: "application/octet-stream" in /etc/nginx/mime.types:63
    nginx: [warn] duplicate extension "iso", content type: "application/octet-stream", previous content type: "application/octet-stream" in /etc/nginx/mime.types:64
    nginx: [warn] duplicate extension "img", content type: "application/octet-stream", previous content type: "application/octet-stream" in /etc/nginx/mime.types:64
    nginx: [warn] duplicate extension "msi", content type: "application/octet-stream", previous content type: "application/octet-stream" in /etc/nginx/mime.types:65
    nginx: [warn] duplicate extension "msp", content type: "application/octet-stream", previous content type: "application/octet-stream" in /etc/nginx/mime.types:65
    nginx: [warn] duplicate extension "msm", content type: "application/octet-stream", previous content type: "application/octet-stream" in /etc/nginx/mime.types:65
    nginx: [warn] duplicate extension "docx", content type: "application/vnd.openxmlformats-officedocument.wordprocessingml.document", previous content type: "application/vnd.openxmlformats-officedocument.wordprocessingml.document" in /etc/nginx/mime.types:67
    nginx: [warn] duplicate extension "xlsx", content type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", previous content type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" in /etc/nginx/mime.types:68
    nginx: [warn] duplicate extension "pptx", content type: "application/vnd.openxmlformats-officedocument.presentationml.presentation", previous content type: "application/vnd.openxmlformats-officedocument.presentationml.presentation" in /etc/nginx/mime.types:69
    nginx: [warn] duplicate extension "mid", content type: "audio/midi", previous content type: "audio/midi" in /etc/nginx/mime.types:71
    nginx: [warn] duplicate extension "midi", content type: "audio/midi", previous content type: "audio/midi" in /etc/nginx/mime.types:71
    nginx: [warn] duplicate extension "kar", content type: "audio/midi", previous content type: "audio/midi" in /etc/nginx/mime.types:71
    nginx: [warn] duplicate extension "mp3", content type: "audio/mpeg", previous content type: "audio/mpeg" in /etc/nginx/mime.types:72
    nginx: [warn] duplicate extension "ogg", content type: "audio/ogg", previous content type: "audio/ogg" in /etc/nginx/mime.types:73
    nginx: [warn] duplicate extension "m4a", content type: "audio/x-m4a", previous content type: "audio/x-m4a" in /etc/nginx/mime.types:74
    nginx: [warn] duplicate extension "ra", content type: "audio/x-realaudio", previous content type: "audio/x-realaudio" in /etc/nginx/mime.types:75
    nginx: [warn] duplicate extension "3gpp", content type: "video/3gpp", previous content type: "video/3gpp" in /etc/nginx/mime.types:77
    nginx: [warn] duplicate extension "3gp", content type: "video/3gpp", previous content type: "video/3gpp" in /etc/nginx/mime.types:77
    nginx: [warn] duplicate extension "ts", content type: "video/mp2t", previous content type: "video/mp2t" in /etc/nginx/mime.types:78
    nginx: [warn] duplicate extension "mp4", content type: "video/mp4", previous content type: "video/mp4" in /etc/nginx/mime.types:79
    nginx: [warn] duplicate extension "mpeg", content type: "video/mpeg", previous content type: "video/mpeg" in /etc/nginx/mime.types:80
    nginx: [warn] duplicate extension "mpg", content type: "video/mpeg", previous content type: "video/mpeg" in /etc/nginx/mime.types:80
    nginx: [warn] duplicate extension "mov", content type: "video/quicktime", previous content type: "video/quicktime" in /etc/nginx/mime.types:81
    nginx: [warn] duplicate extension "webm", content type: "video/webm", previous content type: "video/webm" in /etc/nginx/mime.types:82
    nginx: [warn] duplicate extension "flv", content type: "video/x-flv", previous content type: "video/x-flv" in /etc/nginx/mime.types:83
    nginx: [warn] duplicate extension "m4v", content type: "video/x-m4v", previous content type: "video/x-m4v" in /etc/nginx/mime.types:84
    nginx: [warn] duplicate extension "mng", content type: "video/x-mng", previous content type: "video/x-mng" in /etc/nginx/mime.types:85
    nginx: [warn] duplicate extension "asx", content type: "video/x-ms-asf", previous content type: "video/x-ms-asf" in /etc/nginx/mime.types:86
    nginx: [warn] duplicate extension "asf", content type: "video/x-ms-asf", previous content type: "video/x-ms-asf" in /etc/nginx/mime.types:86
    nginx: [warn] duplicate extension "wmv", content type: "video/x-ms-wmv", previous content type: "video/x-ms-wmv" in /etc/nginx/mime.types:87
    nginx: [warn] duplicate extension "avi", content type: "video/x-msvideo", previous content type: "video/x-msvideo" in /etc/nginx/mime.types:88
    nginx: [emerg] "default_type" directive is duplicate in /etc/nginx/conf.d/~lxcenter.conf:3
    nginx: configuration file /etc/nginx/nginx.conf test failed

Logged

#### GentZu

- Senior Member
- Posts: 323
- Karma: +0/-0
- Gender:
- yare yare...

##### Re: [ASK] cara disable error.log nginx

« Reply #13 on: 2015-01-20, 03:32:24 »
dan satu lagi, yg di chamod 777 di atas kemabi seperti default setelah restart web...
Logged

#### GentZu

- Senior Member
- Posts: 323
- Karma: +0/-0
- Gender:
- yare yare...

##### Re: [ASK] cara disable error.log nginx

« Reply #14 on: 2015-01-20, 03:45:49 »
satu lagi pak, jadi setelah saya amati menggunakan nginx only kondisinya sebagai berikut:
kondisi default setting kloxomr
/home/httpd/domain.net/stats/domain.net-custom_log dengan kondisi chamod 644 tidak bisa re write, akibatnya file tersebut hanya 0B , dan efeknya /var/nginx/log/error.log yang membengkak
ketika:
/home/httpd/domain.net/stats/domain.net-custom_log di setting chmod 777 fie ini bisa di write, sehingga file size membengkak, sedangkan /var/log/nginx/error.log dalam keadaan wajar, tp jika di lakukan sh /script/restart-web -y , maka akan kembali pada kondisi pertama
dan ketika saya buat custom.~lxcenter.conf, nginx gagal restart dengan keluar error seperti post di atas...
nah sekalian disable dua log tersebut bagaimana? /var/log/nginx/error.log dan /home/httpd/domain.net/stats/domain.net-custom_log
« Last Edit: 2015-01-20, 03:52:20 by GentZu »
Logged

- Print

Pages: [1] 2 Go Up
« previous next »

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- [ASK] cara disable error.log nginx

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

..:: Monetize Your Website with ylliXmedia ::.. ..:: Online Advertising that Sale Anything with ylliXmedia ::..

- Design By SMFSimple.com
- SMF 2.0.14 | SMF © 2017, Simple Machines

Page created in 0.044 seconds with 17 queries.

Mirror created by MasterkinG32.CoM