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-21, 03:39:10

Author Topic: Ask = Configurasi Varnish Di kloxo-MR  (Read 6330 times)

0 Members and 1 Guest are viewing this topic.

Offline hilmi

  • Junior Member
  • *
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Ask = Configurasi Varnish Di kloxo-MR
« on: 2013-09-06, 07:25:02 »
Saya mau mananyakan pakah instalasi ini sudah berjalan apa belum.
jika saya cek menggunakan

Code: [Select]
varnishtop -i txurlmaka penampakanya adalah


Jika saya cek menggunakan
Code: [Select]
varnishstat -1pemanpakanya


namun kenapa di headernya tidak muncul x-varnish , namun muncul X-chace MISS





1. Yang saya lakukan adalah dengan mengubah port ke  "10080"  pada default.vcl
2. mengkopi '/home/apache/tpl/domains.conf.tpl' ke '/home/apache/tpl/custom.domains.conf.tpl'
3. mengkopi '/home/apache/tpl/defaults.conf.tpl' to '/home/apache/tpl/custom.defaults.conf.tpl'
4. menubah port dari custom.domains.conf.tpl  dan custom.defaults.conf.tpl menjadi

Code: [Select]
if ($reverseproxy) {
    $ports[] = '30080';
    $ports[] = '30443';
} else {
    $ports[] = '10080';
    $ports[] = '443';
}

5. sh /script/fixweb' dan 'service httpd restart

Apakah instalasi itu sudah benar? Mohon petunjuknya
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline prandah

  • Senior Member
  • *
  • Posts: 344
  • Karma: +0/-0
    • View Profile
    • https://www.bowo.name
Re: Ask = Configurasi Varnish Di kloxo-MR
« Reply #1 on: 2013-09-06, 21:40:44 »
udah jalan kok,,
kalo xcache coba di insta dulu xcache nya
kalo masih miss yah emang miss :)
saya jarang ngena kalo xcache, tapi kalo pakek apc sering banget hit nya
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline hilmi

  • Junior Member
  • *
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Re: Ask = Configurasi Varnish Di kloxo-MR
« Reply #2 on: 2013-09-07, 06:15:46 »
Quote from: "prandah"
udah jalan kok,,
kalo xcache coba di insta dulu xcache nya
kalo masih miss yah emang miss :)
saya jarang ngena kalo xcache, tapi kalo pakek apc sering banget hit nya

Apakah xcache dan varnish bisa di jalankan barengan mas?

Saya lihat di tutorial biasanya varnish akan muncul di header "x-varnish" kira kira gimana ya cara memunculkanya :D
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline prandah

  • Senior Member
  • *
  • Posts: 344
  • Karma: +0/-0
    • View Profile
    • https://www.bowo.name
Re: Ask = Configurasi Varnish Di kloxo-MR
« Reply #3 on: 2013-09-07, 10:21:47 »
tinggal edit ajah di default.vcl

ini script nya untuk nampilin xcachenya

Code: [Select]
sub vcl_deliver {

  if (obj.hits > 0) {
    set resp.http.X-Cache = "HIT";
  } else {
    set resp.http.X-Cache = "MISS";
  }
}
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


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

Page created in 0.042 seconds with 19 queries.

web stats analysis