MRatWork Forum by Mustafa Ramadhan - Varnish Config

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, 17:32:03

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- Varnish Config

« previous next »

- Print

Pages: [1] Go Down

### Author Topic: Varnish Config (Read 1376 times)

0 Members and 1 Guest are viewing this topic.

#### opotoiki

- Senior Member
- Posts: 151
- Karma: +0/-0

##### Varnish Config

« on: 2013-03-28, 17:22:14 »
Halo master..saya lagi butuh masukan nih..mohon dibantu ya master
lagi males ngomong londo yang masih belepotan, jadi bikin thread disini aja deh :lol:
saya install varnish cuman lagi bingung define di kloxo config templatenya (tpl)
kalo manual ubah httpd.conf sih bisa, tapi kan katanya lebih baik settingan diubah di template, itu gimana ya caranya?
maksudnya gimana caranya supaya kita ngasih tau kloxo supaya pakai settingan reverse-proxy (port 30080) seperti ketika sedang pakai nginx-proxy/lighttpd-proxy, sedangkan dipanel kloxo hanya dipilih apache?
maksudnya supaya yang diubah manual hanya config varnishnya saja dan kalo update tidak berubah lagi..
mohon dibantu ya master, maaf kalo pertanyaannya juga blepotan
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Logged
belajar yang banyak, masih goblok soalnya...

#### MRatWork

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

##### Re: Varnish Config

« Reply #1 on: 2013-03-28, 18:03:00 »
1. tentukan port httpd yang mau di-listen oleh varnish (katakan saja port 8080). ini harus disetting di varnish tentunya
2. jika belum ada, copy /home/apache/tpl/domains.conf.tpl ke /home/apache/tpl/custom.domains.conf.tpl dan /home/apache/tpl/defaults.conf.tpl ke /home/apache/tpl/custom.defaults.conf.tpl
3. ubah isi custom. file tersebut dari:
Code: [Select]

    ....
    if ($reverseproxy) {
        $ports[] = '30080';
        $ports[] = '30443';
    } else {
        $ports[] = '80';
        $ports[] = '443';
    }
    ....

ke:
Code: [Select]

    ....
    if ($reverseproxy) {
        $ports[] = '30080';
        $ports[] = '30443';
    } else {
        $ports[] = '8080';
        $ports[] = '443';
    }
    ....

4. usahakan port 433 tetap di-listen oleh httpd
5. jalankan:
Code: [Select]

    sh /script/fixweb
    sh /script/restart-services

6. selesai.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### opotoiki

- Senior Member
- Posts: 151
- Karma: +0/-0

##### Re: Varnish Config

« Reply #2 on: 2013-03-29, 12:05:56 »
:lol: ia ya master, kenapa saya malah fokus ke 30080..makasih pencerahannya master
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Logged
belajar yang banyak, masih goblok soalnya...

#### prandah

- Senior Member
- Posts: 343
- Karma: +0/-0

##### Re: Varnish Config

« Reply #3 on: 2013-03-29, 20:15:11 »
mantaph nih
tinggal yum install varnish ajah
sekalian ngelanjutin
untuk setingan di varnish.vcl itu ada host ?
nah kalo ada 5 ip untuk hostnya dibiarin default 127.0.0.1 atau *.*.*.* ?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Logged
Main Main Kesini

- Print

Pages: [1] Go Up
« previous next »

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- Varnish Config

Top 4 Global Search Engines: Google Bing Baidu Yahoo

..:: Monetize your Website or Blog with BidVertiser ::.. ..:: Sell your ad space with BidVertiser ::..

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

Page created in 0.037 seconds with 16 queries.

Mirror created by MasterkinG32.CoM