Apache Create Test Web Page, 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 websites on a single IP address. It uses Port No. 80 for HTTP and 443 for HTTPS. you can test virtual hosting and status using the creation of a page in Apache.
Apache Test Web Page Using Name-Based Virtual Hosting:
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.
Check Out: Configure Varnish For Apache Web Server
Add these code
Save and exit
Now check if there any syntax error in the file by command httpd -t
Everything good in the test.conf file, Now you can access the websites via browser yourip/test.html
Log files are located at /var/log/httpd/
That’s it. test apache status create test page apache virtual hosting