(01)Install Apache HTTP Server
Linux
1sudo apt-get install -y apache22sudo systemctl enable apache2 && sudo systemctl start apache2Classic web server (httpd) for websites and apps
What is this?
Apache httpd is a widely used web server for hosting websites and applications.
Where to create or edit the main configuration — paths below match the setup steps.
/etc/apache2/sites-available/*.confLocation: Linux — Debian/Ubuntu
VirtualHost and module config
/etc/httpd/conf.d/*.confLocation: RHEL/CentOS
Site and module snippets
Step 01
1sudo apt-get install -y apache22sudo systemctl enable apache2 && sudo systemctl start apache2Step 02
1sudo nano /etc/apache2/sites-available/myapp.conf2sudo a2ensite myapp && sudo systemctl reload apache2Step 03
1curl -I http://localhost