Created
May 2, 2022 18:45
-
-
Save Juadul-Ahmed/7b73aeeb25feda42877419e85a0106bd to your computer and use it in GitHub Desktop.
I Will Do Install VarNish On Ubuntu 20.04.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
commented
May 2, 2022
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment