Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Juadul-Ahmed/7b73aeeb25feda42877419e85a0106bd to your computer and use it in GitHub Desktop.

Select an option

Save Juadul-Ahmed/7b73aeeb25feda42877419e85a0106bd to your computer and use it in GitHub Desktop.
I Will Do Install VarNish On Ubuntu 20.04.
sudo apt update
sudo apt upgrade
sudo apt install apache2
sudo ufw allow http
sudo ufw allow https
sudo nano /etc/apache2/ports.conf
##Listen 8080
sudo nano /etc/apache2/sites-available/000-default.conf
##And replace the VirtualHost line with this one:
<VirtualHost *:8080>
Save the changes and close the file.
sudo apachectl configtest
#Syntax OK
sudo systemctl restart apache2
###install Varnish run the following command:
sudo apt install varnish
sudo systemctl start varnish
sudo systemctl enable varnish
cd /etc/varnish/
sudo cp default.vcl default.vcl.bak
sudo
HTTP/1.1 200 OK
Date: Wed, 22 Dec 2021 12:30:53 GMT
Server: Apache/2.4.41 (Ubuntu)
Last-Modified: Wed, 22 Dec 2021 12:16:42 GMT
ETag: "2aa6-5d3bb183e45b1"
Accept-Ranges: bytes
Content-Length: 10918
Vary: Accept-Encoding
Content-Type: text/html nano default.vcl
@Juadul-Ahmed

Copy link
Copy Markdown
Author

Uploading Screenshot from 2022-05-03 00-46-04.png…

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