Skip to content

Instantly share code, notes, and snippets.

@LinuxlinkedBD
Last active June 9, 2021 16:25
Show Gist options
  • Save LinuxlinkedBD/8b1fbecd64cb7490c10d0219bd055b87 to your computer and use it in GitHub Desktop.
Save LinuxlinkedBD/8b1fbecd64cb7490c10d0219bd055b87 to your computer and use it in GitHub Desktop.
How to install and configure varnish with apache
If you need complete varnish cache setup, ping me on below contacts:
Telegram: linuxlinked
email: [email protected]
WhatsApp: +8801720903155
Skype:live:.cid.c0dc316b9d727d5e
YouTube: https://youtu.be/3Flkl-Ir8t8
########################################################################################################################################
#!/bin/bash
sudo apt-get update
sudo apt update
sudo apt-get install software-properties-common
sudo apt update
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt -y install git
sudo apt update
sudo apt upgrade -y
sudo apt -f install
sudo apt -y autoremove
sudo apt -y autoclean
sudo apt -y clean
sudo apt update
sudo reboot
apt install -y apache2
systemctl start apache2
systemctl enable apache2
netstat -plntu
cd /var/log/varnish/
cat varnishncsa.log
varnishncsa
#browse to your_server_ip or localhost
@LinuxlinkedBD
Copy link
Author

Screenshot from 2021-06-07 01-27-12
Screenshot from 2021-06-07 01-28-08
Screenshot from 2021-06-07 01-29-06
Screenshot from 2021-06-07 01-29-33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment