i got Nginx >> Varnish >> Apache working and results are amazing.
my $10 vps was able to handle 1000 clients/s for over 1 minute, theoretically that mean 86 million visitors a day. i am sure it can handle even more but i only test for 1000 clients using loader.io.
3 GB data was transferred in 1 minute.
It's gonna be better if you spend you time to give instruction instead of talking about your server.
----
Guys I tell you how to install Apache, Let's Encrypt and Varnish cache, latest Centos Web Panel on 20 Sep 2016. I haven't try NginX yet because I dont need it for now, maybe in future I will update this post
I assume you have done installing Centos Web panel. Now login at http://<your_ip>:2030/
Overview :
You might follow my setup in order : Apache Configuration > Lets encrypt > Varnish
1. Make your your website is running on port 80 ,
http://your_domain.com/2. Navigate to Apache Setting > Install Let's encrypt > Manager , press Install
3. After install the service, go to that menu again and install SSL certificate for your first domain. Fill information on this box :
"Install Letsencrypt for Account/Main Domain" , or
Custom Install of Letsencrypt if you modified your public_html folder location (default : /home/username/public_html)
Then press Install
Ok, now they are installing and verify certificate, if you failed or whatever error, here are some reasons:
- the folder is not exist . Go check if there is a folder named :
'.well-known' inside your public_html folder
- If it is exist, go check on browser if you can load it on browser, because your server is going to verify this certificate via http
If you done this part, go check your domain at
https://yourdomain/ At this point, even you failed at install SSL certificate, you still can access your Panel at
https://yourdomain:2031 , but you will get warning from browser since it is missing certificate
Now you go ahead and choose your webserver. Apache Settings > Select Webservers
Choose
Apache & Varnish Cache (Varnish on port 80 and apache on port 8181)Click Save and Rebuild
----
Apache settings > Apache Configuration
Find
Listen 80 , change it to 8181
Find and update
ServerName yourdomain.com
Save it and restart Apache
Test it:
https://yourdomain.comhttps://yourdomain.comDirectly load Apache Server SSL:
http://yourdomain.com:443Load Vanish cache:
http://yourdomain.comVerify Vanish cache working:
http://www.isvarnishworking.com and submit your site.
Please note that Vanish cache is not supported for https. So you will serve ether Vanish Cache http or https (no cache).
I think the process gonna be similar to NignX.