Ravi Sir's Cyber Security Cards › Revision Cards
Multiple Sites with Apache (Amazon Linux 2023 and Ubuntu)
Multiple Sites with Apache (Amazon Linux 2023 and Ubuntu) Hosting several websites on one Apache server. Each site gets its own virtual host file. Amazon Linux: /etc/httpd/conf.d/site1.conf (on automatically). Ubuntu: /etc/apache2/sites-available/site1.conf , then sudo a2ensite site1 . Add both name

Read card text
What this card says
What it is
Hosting several websites on one Apache server. Each site gets its own virtual host file.
Where configs go
Amazon Linux: /etc/httpd/conf.d/site1.conf (on automatically).
Ubuntu: /etc/apache2/sites-available/site1.conf, then sudo a2ensite site1.
Test before DNS
Add both names to your laptop’s hosts file pointing to the server IP, then open them in the browser.
Learn more in the lesson: 13.3 Multiple Sites with Apache (Amazon Linux 2023 and Ubuntu)