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-15, 00:36:36

Author Topic: Help Cara Mengunakan Nginx  (Read 7837 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: Help Cara Mengunakan Nginx
« Reply #15 on: 2014-12-04, 01:44:22 »
Anda bisa mengubah menjadi:
Code: [Select]
if (file_exits("{$globalspath}/{$domainname}.conf")) {
?>

   include '<?php echo $globalspath?>/<?php $domainname?>.conf';
<?php
} else {
if ($wildcards) {
?>


   include '<?php echo $globalspath?>/switch_wildcards.conf';
<?php
} else {
?>


   include '<?php echo $globalspath?>/switch_standard.conf';
<?php
}
}

yang artinya nginx akan pakai "{$globalspath}/{$domainname}.conf" (misalnya '/opt/configs/nginx/conf/globals/domain.com.conf') jika ada dan pakai standard jika tidak ada.

Gunakan imajinasi anda untuk 'mengolah' custom file tersebut.
« Last Edit: 2014-12-04, 01:45:57 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: Help Cara Mengunakan Nginx
« Reply #16 on: 2014-12-04, 03:52:13 »
Anda bisa mengubah menjadi:
Code: [Select]
if (file_exits("{$globalspath}/{$domainname}.conf")) {
?>

   include '<?php echo $globalspath?>/<?php $domainname?>.conf';
<?php
} else {
if ($wildcards) {
?>


   include '<?php echo $globalspath?>/switch_wildcards.conf';
<?php
} else {
?>


   include '<?php echo $globalspath?>/switch_standard.conf';
<?php
}
}

yang artinya nginx akan pakai "{$globalspath}/{$domainname}.conf" (misalnya '/opt/configs/nginx/conf/globals/domain.com.conf') jika ada dan pakai standard jika tidak ada.

Gunakan imajinasi anda untuk 'mengolah' custom file tersebut.

owh jadi saya cuman kurang ini ya if (file_exits("{$globalspath}/{$domainname}.conf"))
maturnuwun pak, berharap ngefix bugs sslnya :D

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Help Cara Mengunakan Nginx
« Reply #17 on: 2014-12-04, 03:58:19 »
Perhatikan lagi apa yang kurang. Harus 'if () {}'
..:: 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: Help Cara Mengunakan Nginx
« Reply #18 on: 2014-12-04, 04:46:52 »
setting supaya biar traffik optimal kalau menggunakan nginx only apa cukup dengan set max-chid php-fpm pak?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Help Cara Mengunakan Nginx
« Reply #19 on: 2014-12-04, 06:42:35 »
setting supaya biar traffik optimal kalau menggunakan nginx only apa cukup dengan set max-chid php-fpm pak?
Yang terutama memang itu.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


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

Page created in 0.053 seconds with 21 queries.

web stats analysis