Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed May 08, 2013 2:52 pm 
Offline
Senior Member

Joined: Tue Dec 20, 2011 5:17 pm
Posts: 52
Location: Serbia, Europe
I am running a few Wordpress sites and plan to run another one in the next month or so. That one WordPress site will most likely be with high traffic, so I want to plan ahead and add some caching. I have a 2GB Linode and already have APC for PHP opcode caching. Now I want to add Varnish to the game.

I have Roundcube on my Linode which is SSL encrypted and I plan to set up rewrite rules in nginx so it redirects to HTTPS when accessing admin panel.

The thing is, I've read numerous articles on the Web about putting Varnish in front of nginx, that is, put it to listen on port 80 and then set up nginx on some other port. That works great when you have only HTTP traffic, but when you add HTTPS to the mix, all goes down really bad.

I would like to know whether it is possible to configure Varnish so that it sits in front of nginx and proxies requests to nginx for both SSL and non - SSL web sites. How do I configure Varnish for that scenario? Basically, I would like to know what is the best practice when it comes to setting up Varnish for this kind of scenario. Should Varnish listen on some particular port and sit in front of nginx or there is a better way for doing that?

It would be perfect if someone could point me to some links on the Web so I can read more about setting this thing up. Thanks in advance for all your suggestions.


Top
   
PostPosted: Thu May 09, 2013 10:58 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Your https traffic should be coming in to port 443, not port 80. You can configure Varnish to listen on one and another daemon (such as nginx) to listen on the other.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group