Apache is an Open Source web server widely used in today’s world and highly secure , scalability and great performance. It offers to run multiple website on a single IP address. It uses Port No. 80 for HTTP and 443 for HTTPS.
Let’s test it, we’re going to have a test page with the help of we will try to make you understand how to run a website under virtual hosting.
There must be a file with .html under the below directory to check it on browser write anything you want in this file
File will be located at /var/www/html/
Create a text file end it with .conf and add the following lines in this file
Save and exit
Now Check is there any syntax error in the file by command httpd -t
There is no error found in the test.conf file means everything is correct and now go to browser and access IP/test.html
Log files are located at /var/log/httpd/