How to configure virtual hosting in Apache?

Solution Verified - Updated -


  • Need to configure apache server with two websites in port 80.
  • Need example for creating Virtual Host in a Apache Web server.
  • Please share the procedure for Creating Virtual Host in a Apache Web server.
  • How to configure multiple website in a single Apache httpd instance.


  • Red Hat Enterprise Linux (RHEL)
    • 7.x
    • 8.x
    • 9.x
  • Apache httpd
    • 2.4. x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content