서버/Apache

아파치

험자 2020. 6. 7. 18:39

Install Apache

sudo apt-get update
sudo apt-get install apache2

Check default page after installation

  1. http://local.server.ip
  2. hostname -I | awk '{print $1}'

Configure Firewall

sudo ufw app list
Available applications:
  Apache
  Apache Full
  Apache Secure
  CUPS
  Nginx Full
  Nginx HTTP
  Nginx HTTPS
  OpenSSH

sudo ufw allow 'Apache'
sudo ufw status    

Apache Configuration

sudo systemctl stop apache2.service
sudo systemctl start apache2.service
sudo systemctl restart apache2.service
sudo systemctl reload apache2.service

References

https://phoenixnap.com/kb/how-to-install-apache-web-server-on-ubuntu-18-04