site1.conf enter image description here all domain point to one site

ServerName dev.site1.com DocumentRoot /var/www/html/site1

site2.conf ServerName dev.site2.com DocumentRoot /var/www/html/site2

site3.conf ServerName dev.site3.com DocumentRoot /var/www/html/site3

where i missing

  • What are you trying to achieve? Your question (and setup) is not very clear to me. – vidarlo Feb 8 '18 at 19:12

From your question it's really hard to understand what you would like to know. Let me guess … You would like to make 3 different domains available under one IP on an Apache web server. Right?


  • Don't put the domain names in the <VirtualHost …> line. This line is meant to hold the server's public IP address.

  • Maybe only a minor issues but put the DocumentRoot path in quotes ""

Your config should propably look like this:

(replace IP, DocumentRoot and ServerName with your own values, of course)

Listen 80
    DocumentRoot "/www/example1"
    ServerName www.example.com

    DocumentRoot "/www/example2"
    ServerName www.example.org

    DocumentRoot "/www/example3"
    ServerName www.example.net

Source: Apache VirtualHost Examples

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.