MRatWork Forum by Mustafa Ramadhan - Help Cara Mengunakan 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:51:05

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- Help Cara Mengunakan Nginx

« previous next »

- Print

Pages: 1 [2] Go Down

### Author Topic: Help Cara Mengunakan Nginx (Read 3939 times)

0 Members and 1 Guest are viewing this topic.

#### MRatWork

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

##### 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 »
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: Help Cara Mengunakan Nginx

« Reply #16 on: 2014-12-04, 03:52:13 »
Quote from: MRatWork 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.

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

#### MRatWork

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

##### Re: Help Cara Mengunakan Nginx

« Reply #17 on: 2014-12-04, 03:58:19 »
Perhatikan lagi apa yang kurang. Harus 'if () {}'
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: 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?
Logged

#### MRatWork

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

##### Re: Help Cara Mengunakan Nginx

« Reply #19 on: 2014-12-04, 06:42:35 »
Quote from: GentZu 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?

Yang terutama memang itu.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

- Print

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

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- Help Cara Mengunakan Nginx

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

..:: 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.032 seconds with 17 queries.

Mirror created by MasterkinG32.CoM