Update Section_06/reverse_proxy.sh
This commit is contained in:
parent
1371cf1849
commit
94f03802fa
21
Section_06/reverse_proxy.sh
Normal file
21
Section_06/reverse_proxy.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user