Last active
September 20, 2021 16:18
-
-
Save han-wong/2e9551ba9fe51ee978746bda08a5c90d to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
sudo apt install nginx | |
echo "server { | |
listen 80; | |
server_name marlene; | |
location / { | |
proxy_pass http://127.0.0.1:5560/; | |
} | |
}" | sudo tee /etc/nginx/conf.d/marlene.conf | |
cat /etc/hosts > temphostsfile ; | |
echo "127.0.0.1 marlene" | sudo tee /etc/hosts ; | |
cat temphostsfile | sudo tee -a /etc/hosts ; | |
sudo rm temphostsfile ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment