Find the answer to your Linux question:
Results 1 to 2 of 2
I have two domains on my box. I have everything working fine except when I type into my browser domain2.com I am getting the index page of the domain1.com When ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2004
    Location
    SLC, UT
    Posts
    67

    Apache httpd.conf issue (I think)


    I have two domains on my box.

    I have everything working fine except when I type into my browser domain2.com I am getting the index page of the domain1.com

    When I use www.domain2.com all works fine.

    I have VirtualHost set to

    ServerRoot /path/to/domain2
    ServerName *domain2.com

    I have a second entry

    ServerRoot /path/to/domain2
    ServerName www.domain2.com

    Any clues?

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    since the ips are the same but the names are different, how bout Name Based Virtual Hosts

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •