Apache Test Web Page Using Name Based Virtual Hosting On CentOS 7

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.

Check Out: Install Varnish Cache To Speed Up Apache Performance

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/

apache test page

Create a text file end it with .conf and add the following lines in this file.

vim /var/www/html/test.conf

test apache status

Check Out: Configure Varnish For Apache Web Server

Add these code

virtual hosting apache

Save and exit

Now check if there any syntax error in the file by command httpd -t

Apache Test Web Page

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

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

27 thoughts on “Apache Test Web Page Using Name Based Virtual Hosting On CentOS 7”

  1. Hi, Neat post. There’s a problem along with your
    website in web explorer, may test this… IE still is the market chief and a large component of folks will omit your wonderful writing due to this problem.

  2. Definitely believe that which you stated. Your favorite justification seemed
    to be on the internet the simplest thing to be aware of.
    I say to you, I certainly get irked while people consider
    worries that they plainly don’t know about. You managed to hit the nail upon the top and also defined out the whole thing without having
    side effect , people can take a signal. Will likely be back to get
    more. Thanks

  3. I want to show my appreciation to this writer just for bailing me out of this type of problem.
    Just after browsing through the the web and obtaining strategies which are not
    pleasant, I assumed my life was well over. Living without the solutions to the issues
    you’ve sorted out through your blog post is a serious case, as well as ones which could have adversely affected my entire career if I had not encountered your web page.
    Your main understanding and kindness in controlling every part was vital.

    I am not sure what I would’ve done if I had not discovered
    such a solution like this. I can at this point look forward
    to my future. Thanks for your time so much for the reliable and result oriented guide.
    I will not be reluctant to suggest your web page to any person who
    would like guidance on this issue.

  4. I seriously love your site.. Excellent colors & theme. Did you build this amazing site yourself?
    Please reply back as I?m planning to create my own site
    and would love to learn where you got this from or exactly what the
    theme is called. Many thanks!

  5. I think this is among the most vital information for me.
    And i’m satisfied studying your article. However should observation on few normal things,
    The website taste is ideal, the articles is in reality great :D.
    Good process, cheers.

  6. Good website! I really love how it is simple on my eyes and the data are well written. I’m wondering how I might be notified when a new post has been made.
    I have subscribed to your feed which must do the trick!
    Have a nice day!

  7. I’m really enjoying the design and layout of your blog.
    It’s a very easy on the eyes which makes it much more enjoyable for me to come here
    and visit more often. Did you hire out a designer to create your theme?
    Outstanding work!

  8. hi!,I like your writing so much! percentage we keep in touch extra approximately your post
    on AOL? I require a specialist on this space to solve my problem.
    Maybe that’s you! Taking a look forward to look you.

  9. Hello, i think that i noticed you visited my web site thus i
    got here to ?go back the want?.I’m trying to in finding
    things to enhance my web site!I suppose its adequate to use some of your ideas!!

  10. You made some really good points there. I looked on the internet for
    more information about the issue and found most people
    will go along with your views on this website.


Leave a comment