Last active
December 22, 2021 16:41
-
-
Save LinauxTerminology/5766682612c591c2750a3d6c287deb08 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
If you need Varnish Setup contact with me: | |
Email: [email protected] | |
Skype: https://join.skype.com/ | |
Telegram:https://t.me/LinauxTerminology | |
WhatsApp: +8801408694088 | |
Imo: +8801408694088 | |
##3CONFIGURE VARNISH WITH APACHE | |
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 | |
curl -I localhost | |
##Replace [your-server] with the IP address of your server or the domain. You should receive an output similar to this: | |
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 | |
Author
LinauxTerminology
commented
Dec 22, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment