Welcome to Centmin Mod Community
Register Now

Installing Varnish Cache ?

Discussion in 'Other Centmin Mod Installed software' started by Talia Olga, Sep 29, 2014.

  1. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    3:57 AM
    1.7.5
    5.x.x
    and when i remove
    -s file,/var/lib/varnish/varnish_storage.bin,4G"
    and add this
    -s malloc, 1 G
    then varnish start failed
    how i will specify malloc to ram??

     
  2. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    3:57 AM
    1.7.5
    5.x.x
    so,
    according to my question if i wanna allocate 4gb ram for varnish and if nginx port is 8080.
    then kindly can you please provide the /etc/sysconfig/varnish codes???
    am completely new in Centos
    am sorry
     
  3. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    3:57 AM
    1.7.5
    5.x.x
    can you please give me the full
    /etc/sysconfig/varnish
    codes??
    then i will config the conf.d ports
    actually i dont know centos
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,535
    12,219
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,788
    Local Time:
    9:57 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Updated info at Installing Varnish Cache ? | Centmin Mod Community only 2 variables need changing in /etc/sysconfig/varnish.

    Really, you should do some Google search and official documentation reading for Varnish Cache for CentOS/Redhat as I am unable to provide free support for Varnish Cache setup on the forums as Centmin Mod is provided as is and Varnish Cache YUM repo is only included for those folks who understand Varnish Cache for CentOS/Redhat. Hope you understand.
     
  5. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    3:57 AM
    1.7.5
    5.x.x
    ha ha
    oh i understood
    it's funny
    am from nevada, us
    so, where you from??
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,535
    12,219
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,788
    Local Time:
    9:57 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  7. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    3:57 AM
    1.7.5
    5.x.x
    Code:
     curl -I www.varnish-cache.org
    HTTP/1.1 302 https://www.varnish-cache.org/
    Server: Varnish
    Location: https://www.varnish-cache.org/
    Accept-Ranges: bytes
    Date: Mon, 29 Sep 2014 10:12:16 GMT
    X-Varnish: 806288163
    Age: 0
    Via: 1.1 varnish
    Connection: close
    thats my output
    this is wrong
    server should be nginx
    how i will solve??
     
  8. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    3:57 AM
    1.7.5
    5.x.x
    oh in my domain varnish is not working
    which port i will select 80 or 8080??
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,535
    12,219
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,788
    Local Time:
    9:57 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you're testing against official site domain so of course it's server header is Varnish. Need to test against your own domain hosted on Centmin Mod LEMP stack.

    i.e.
    Code:
     curl -I localhost:6081
    HTTP/1.1 200 OK
    Server: nginx centminmod
    Content-Type: text/html; charset=UTF-8
    Vary: Accept-Encoding
    X-Page-Speed: 1.9.32.1-4238
    Cache-Control: max-age=0, no-cache
    Date: Sun, 28 Sep 2014 14:55:03 GMT
    X-Varnish: 1534827071
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    the Varnish Cache backend port is which ever you set in your default.vcl + Nginx vhost .conf files as outlined in post 8 Installing Varnish Cache ? | Centmin Mod Community
     
  10. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    3:57 AM
    1.7.5
    5.x.x
    if my ip is 123.456.789
    then whats my reverseproxyip??
     
  11. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    3:57 AM
    1.7.5
    5.x.x
    or how can i get a reverse proxy ip??
     
  12. eva2000

    eva2000 Administrator Staff Member

    54,535
    12,219
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,788
    Local Time:
    9:57 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    server ip = your proxy ip
     
  13. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    3:57 AM
    1.7.5
    5.x.x
    can you please give me nginx.conf, domain.conf, virtual.conf sample?? pls
     
  14. eva2000

    eva2000 Administrator Staff Member

    54,535
    12,219
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,788
    Local Time:
    9:57 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    no samples needed, all domain.com.conf and virtual.conf just need to add or change listen port

    from
    Code:
    server {
             listen   80;
    to the Varnish default.vcl defined backend port e.g. 8080
    Code:
    server {
             listen   8080;
    restart nginx afterwards

    and as per Installing Varnish Cache ? | Centmin Mod Community step 4

     
  15. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    3:57 AM
    1.7.5
    5.x.x
    oh, may be i will give up
    do you have any bind9 domain config script??? like nsd in centos??
     
  16. eva2000

    eva2000 Administrator Staff Member

    54,535
    12,219
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,788
    Local Time:
    9:57 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    You said you are testing Centmin Mod, so just give it time and do your research/reading for CentOS side of things and you'll eventually get there.

    For DNS, only NSD Domains - Domain name DNS setup on local NSD server | Centmin Mod Community not BIND for Centmin Mod. You can install BIND yourself and disable NSD if you want but no support for BIND from me as well.

    to disable and stop NSD service
    Code:
    chkconfig nsd off
    service nsd stop
     
  17. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    3:57 AM
    1.7.5
    5.x.x
    hey if i give you root access just only varnish
    i just wanna see
    please only for 1 time can you configure??
    i just wanna see man!!
    if you wanna take a look i can send you username and pass right now
     
  18. eva2000

    eva2000 Administrator Staff Member

    54,535
    12,219
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,788
    Local Time:
    9:57 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Sorry @Talia Olga you'll have to test and try yourself as I don't provide free support for Varnish setup/configure. Centmin Mod is provided as is.

    You're very close given what I've already provided you within this thread - just work at it and feel that sense of accomplishment ;) :)
     
  19. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    3:57 AM
    1.7.5
    5.x.x
    i know i know man
    very tiny thing but i can't understand
    in ubuntu just listen localhost:8080
    boom!!
     
  20. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    3:57 AM
    1.7.5
    5.x.x
    can u just give me nsd domain setup script in used by centminmod??