Creating a Virtual Host Domain on Apache2 - Ubuntu Server

Опубликовано: 28 Сентябрь 2024
на канале: Sk 21
8,182
135

How to create a new virtualhosts domain on the apache2 web server using the ubuntu server 20.04 operating system on virtual box.

To create a new domain on the apache2 webserver is very easy, the steps can be simplified as follows:

1. Update the Ubuntu repository
2. Install apache2
3. Create a new folder for storing domain web files at /var/www
4. Fill the new folder with an index.html file
5. Duplicate apache2 default configuration file
6. Edit the duplicate file by changing the document root and server name according to the domain name
7. Activate the new domain configuration with a2ensite
8. Done

Required equipment:
- Virtualbox
- VM Ubuntu Server 20.04 (for all Linux OS the steps are almost the same)

Web Server Protection Playlist:
   • Web Server  

Social media :
- Instagram :   / sk21.ig  
- Twitter :   / sanikari21  
- Blog: https://sanikari.blogspot.com/