-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
145c510
commit 78ee004
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/usr/bin/env bash | ||
# configures a server to listening on port 80 of all servers active IPv4 IPs | ||
|
||
sudo sed -i "s/8080/80/" /etc/nginx/sites-enabled/default | ||
sudo service nginx restart | ||
echo "" | sudo dd status=none of=/run/nginx.pid | ||
sudo sed -i 's/\blisten 8080\b/listen 80/' /etc/nginx/sites-enabled/default | ||
sudo systemctl restart nginx | ||
sudo truncate -s 0 /run/nginx.pid >/dev/null 2>&1 | ||
|