How to configure virtual hosting in Apache?

Solution Verified - Updated -

Issue

  • 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.

Environment

  • Red Hat Enterprise Linux (RHEL)
    • 5
    • 6
    • 7
  • Apache HTTPD
    • 2.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.