Update Section_06/reverse_proxy.sh

This commit is contained in:
Kishan Takoordyal 2023-05-20 14:21:46 +00:00
parent 1371cf1849
commit 94f03802fa

View File

@ -0,0 +1,21 @@
#!/bin/bash
# Apache2
sudo systemctl enable apache2 --now
cd /etc/apache2/sites-available/
sudo nano reverse_proxy.conf
sudo a2dissite 000-default
sudo a2ensite reverse_proxy
sudo systemctl reload apache2
# sudo systemctl stop apache2
# sudo systemctl disable apache2
# Install Nginx
sudo systemctl enable nginx --now
cd /etc/nginx/sites-available/
sudo nano reverse_proxy
sudo rm ../sites-enabled/*
sudo ln reverse_proxy ../sites-enabled/
sudo systemctl reload nginx
# sudo systemctl stop nginx
# sudo systemctl disable nginx