I have never saw a guy like you who will teach tech in this way basically I am from India I just love you videos and your acent . Thanks for providing this type of content in future also Love From India
Hey Tony, Amazing Video. 👏🏻 Could you Make a Tutorial on setting up Reverse Proxy with Apache + Nginx + Varnish Cache Setup and Redis from Scratch. Thank You!
@@MS-co1zj Here's a reverse proxy with Apache + Nginx video ruclips.net/video/1fBNOXcYHGQ/видео.html which doesn't go into Varnish, but you should be able to combine the concepts from both videos to get what you're looking for :)
Could you make one video tutorial varnish + ngnix + Apache php fhp + memcached I watch your all tutorial but all is single and different software depending
@Tony Teaches Tech, I am new to Varnish and learning, the way you explained is awesome, simple and easy. I have a question, let us say the varnish cache is built or we tried to warm up the cache and later on the domain name or ip changed for the website, do we have to build or rewarm the cache all over again? we are doing blue/green deployment pattern, and trying to understand when the green environment becomes blue, is there a need to rebuild the cache? Assumption here is that the green environment the varnish cache already built with load testing!!! Your input is much appreciated!!
I don't see why not, but I haven't personally done this myself. Of course, I don't see the benefit of caching the same page, but for different pages this should work.
@@TonyFlorida Which one would you choose? If only one works I would prefer nginx, because I use Plesk. Unless you recommend Varnish btw, thanks for creating all the videos :)
There is no plugin required for Varnish to work with Nginx, but there are some available. Here's what the official varnish folks recommend www.varnish-software.com/wiki/content/tutorials/wordpress/index.html
I'm trying to develop a adaptive bit-rate VOD streaming. In this case caching can't do by traditional way using nginx. Because the user request change dynamically and according to that streaming content will change. Is there a way to develop such kind of caching for the adaptive bit rate VOD streaming?
Thank you so much. I installed varnish on my server using this tutorial, but I have a question. Is there any administrator on 127.0.0.1:6082 for varnish ? I added sub vcl_recv { set req.http.Authorization = "Basic d2h5ZGlkeW91OmRlY29kZXRoaXM="; } You can set base64 username password using below command echo -n "username:password" | base64 on default .vcl but when is open 127.0.0.1:6082 on my explorer nothing happened.
@@TonyTeachesTech Varnish doesn't even show up in the netstat list when trying to do this for https on port 443. Why would you do a video of installing varnish on a non-secure port? Who doesn't use https?
@@TonyTeachesTech yeah, I think I figured it out. I had seed pro coming soon plug-in installed in all of my sub domains. Varnish doesn’t like certain plug-ins. That’s what I’ve read. Will re-install
I have never saw a guy like you who will teach tech in this way basically I am from India I just love you videos and your acent . Thanks for providing this type of content in future also
Love From India
Hey thank you so much! Much more to come
Thank you so much for this step by step configuration. I have successfully
implemented it on my local.
Hey Tony, thank you so much for the tutorial, your teaching is helping me a lot to accomplish my goal to become a System Administrator.
I'm very happy to hear that! Good luck
Hey Tony, Amazing Video. 👏🏻
Could you Make a Tutorial on setting up Reverse Proxy with Apache + Nginx + Varnish Cache Setup and Redis from Scratch. Thank You!
Great suggestion! If I make these videos, they will probably be separate videos. Will definitely have something for you though
@@TonyTeachesTech Is this video already out?
@@MS-co1zj Here's a reverse proxy with Apache + Nginx video ruclips.net/video/1fBNOXcYHGQ/видео.html which doesn't go into Varnish, but you should be able to combine the concepts from both videos to get what you're looking for :)
I must telll you,, you've explained it welll
Thanks!
Hi Tony,
Very helpful video but How would we do in case of HTTPS, please make a tutorial which can guide us for the same...
Good job!
Thank you so much!
Video quality is excellent.
Thanks and you're welcome!
Great explanation!!!
Amazing! How to serve the https?
Could you make one video tutorial varnish + ngnix + Apache php fhp + memcached I watch your all tutorial but all is single and different software depending
I can do a reverse proxy video with Apache and Nginx
Super tutorial! Very illustrative! Thank you and keep goin ;)
Thank you very much, will do!
@Tony Teaches Tech, I am new to Varnish and learning, the way you explained is awesome, simple and easy. I have a question, let us say the varnish cache is built or we tried to warm up the cache and later on the domain name or ip changed for the website, do we have to build or rewarm the cache all over again? we are doing blue/green deployment pattern, and trying to understand when the green environment becomes blue, is there a need to rebuild the cache? Assumption here is that the green environment the varnish cache already built with load testing!!! Your input is much appreciated!!
I Have Nginx with SSL, How to setup varnish as my nginx is running on 443 port (not 80)
Hello. Have you find anything useful for setting that up cause I'm working on that too right now. Thanks!
@@Belladona-yj7ifSure, please share your email ID, and I will send you the document I prepared.
Hey, Tony, can Varnish work together with Redis?
I don't see why not, but I haven't personally done this myself.
Of course, I don't see the benefit of caching the same page, but for different pages this should work.
Great tutorial. Subbed!
Thank you very much!
Hello Sir
My magento2 website is running on ubuntu ec2
can i follow same steps for setup varnish?
I think so, but I don't have expereince with magento2
Hey Tony. How can I automatically preload all my WP pages on the server-level every time the varnish cache is enabled and purged? Thank you.
This is actually interesting. Will it work on HTTPS sites too?
Yep definitely!
Let’s make another episode :) install memcached and redis
Added it to the list!
Your tutorial is amazing and very helpful. Shall we configure Nginx to accept request only from Varnish, but not anybody typing *:8080 to the url ?
Thanks! That is an option
but ssl wordpress site is nor working
Nginx is already have caching feature. do we really need Varnish? What Vanish caching provides additionally?
In some situations, caching with Varnish might be more favorable to Nginx caching
@@TonyTeachesTech Can you use varnish with nginx caching?
@@birdbrainsolutions6112 yes, but any given piece of content can only be served from one cache store
@@TonyFlorida Which one would you choose? If only one works I would prefer nginx, because I use Plesk. Unless you recommend Varnish
btw, thanks for creating all the videos :)
is there any plugin required after this installation on wordpress site? also how can I create rules for some particular pages?
There is no plugin required for Varnish to work with Nginx, but there are some available. Here's what the official varnish folks recommend www.varnish-software.com/wiki/content/tutorials/wordpress/index.html
what about the ssl how we can install ssl ?
Here you go ruclips.net/video/ghZXFyIyK1o/видео.html
Can I control Varnish, the way cloudways or other hosting services control, to stop varnish and to restart varnish whenever required?
Technically yes, with one of systemctl start/restart/stop varnish
Hello, I tried to change port 8080 to 443, but I have not been successful, you could make an example with 443, thanks
What kind of behavior/error do you see with 443?
@@TonyTeachesTech Hello, I tried to make a proxy_pass where I reference port 80 but I can't get it to go through varnish
I'm trying to develop a adaptive bit-rate VOD streaming. In this case caching can't do by traditional way using nginx. Because the user request change dynamically and according to that streaming content will change. Is there a way to develop such kind of caching for the adaptive bit rate VOD streaming?
If you can provide any reference, it will really helpful for me
I'm not sure. Good luck
Do you think varnish and redis will much faster work together under the Ubuntu ? I’m thinking to do lemp reverse proxy varnish and redis cache 😂
In some cases, redis and varnish will works wonders. A LEMP server with redis and varnish sounds like a good stack to try
Hi can you send me installation commands please
Can you do it over https? When trying with https things are not working.:(
Yes https should work too
Varnish and Redis do different things?
Why people in comment section talking about using them both?
:)
Thank you so much. I installed varnish on my server using this tutorial, but I have a question.
Is there any administrator on 127.0.0.1:6082 for varnish ?
I added
sub vcl_recv {
set req.http.Authorization = "Basic d2h5ZGlkeW91OmRlY29kZXRoaXM=";
}
You can set base64 username password using below command
echo -n "username:password" | base64
on default .vcl but when is open 127.0.0.1:6082 on my explorer nothing happened.
bro in my case my nginx is running on 443 how i can mange it with varnish port plz elaborate it
No worries, just replace 8080 with 443 in the tutorial video
@@TonyTeachesTech Varnish doesn't even show up in the netstat list when trying to do this for https on port 443. Why would you do a video of installing varnish on a non-secure port? Who doesn't use https?
@@wnywebdevelopment8757 use the port that meets your needs
cool
thanks
Can I use varnish with redis as well?
Yes, as long as they are being used for different purposes i.e. not caching the same objects
I’m getting Error 503 Backend Fetch Failed 😞
That's a new one for me :) No suggestions are jumping out at me in my brief research
@@TonyTeachesTech yeah, I think I figured it out. I had seed pro coming soon plug-in installed in all of my sub domains. Varnish doesn’t like certain plug-ins. That’s what I’ve read. Will re-install
how to close apache port 8080 :D
sudo ufw deny 8080
you are already root.. why do you want to add sudo? lol