Vhost point to wrong site ? :/

Discussion in 'Apache' started by WingedEagle, Jun 18, 2009.

  1. #1
    I hosted a few sites on my new dedicated server a few days ago, and now have a really ennoying problem

    If i write like site2.com i get to right site, but if i write http://www.site2.com it takes me to site 1 :/




    Should i add this to host ?

    127.0.0.1 www.brutalfps.com and 127.0.0.1 http://brutalfps.com

    And this to my vhost file

    <VirtualHost *:80>
    DocumentRoot "C:\xampp\htdocs\gamer"
    ServerName www.brutalfps.com
    <Directory "C:\xampp\htdocs\gamer>
    </Directory>
    </VirtualHost>

    <VirtualHost *:80>
    DocumentRoot "C:\xampp\htdocs\gamer"
    ServerName http://brutalfps.com
    <Directory "C:\xampp\htdocs\gamer>
    </Directory>
    </VirtualHost>

    Or i way out and biking ?

    Thanks
     
    WingedEagle, Jun 18, 2009 IP
  2. vasyl

    vasyl Peon

    Messages:
    138
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    vasyl, Jun 18, 2009 IP
  3. WingedEagle

    WingedEagle Guest

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ok will try and report back

    Thanks
     
    WingedEagle, Jun 19, 2009 IP