domain points to wrong directory -- with www. points correctly

Discussion in 'General' started by PermaNoob, Feb 10, 2010.

  1. PermaNoob

    PermaNoob Member

    I just added a domain/virtual server in ISPConfig 2 and when I go to the domain without www at the front it goes to the wrong directory and thus an entirely different website.

    If I put the www. in front, it goes to the correct directory.

    I've looked at the Vhosts_ispconfig.conf and everything looks correct.

    Anyone know why this might happen?

    I had a friend at another isp check and he gets the same thing.

    --------------

    Found the problem: somehow the domain name of the new domain was added next to the domain name it pointed to on the ServerAlias line of Vhosts_ispconfig.conf in addition to its normal configuration entries -- never had that happen before.

    I deleted the domain name from the extra entry on that line and restarted ispconfig and everything is ok.
     
    Last edited: Feb 10, 2010

Share This Page