Skip to content

Commit

Permalink
Sweet & Short
Browse files Browse the repository at this point in the history
  • Loading branch information
ojobatcreative committed May 4, 2024
1 parent 145c510 commit 78ee004
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions 0x0E-web_stack_debugging_1/1-debugging_made_short
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

0 comments on commit 78ee004

Please sign in to comment.