1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

how to catch wwww or other typos to the right domain?

Discussion in 'Plesk for Linux - 8.x and Older' started by lizard, Nov 22, 2005.

  1. lizard

    lizard Guest

    0
     
    I'm running the latest version of plesk 7.5.4 on FC2. When setting up domains, I've found that if a person types anything other than www. they are presented with the server's default domain. For example, 123.newdomain.com points to www.defaultdomain.com (customers would not be too happy about that!)

    www.newdomain.com = newdomain.com's website

    wwww.newdomain.com = defaultdomain.com's website.

    How can I make plesk understand that anything.newdomain.com should be equal to www.newdomain.com?

    I am not using the dns part of plesk, I'm using my hosting provider's DNS to setup A records for newdomain.com that points to the servers IP address. no Cnames or anything else.

    Thanks!!!
     
  2. lizard

    lizard Guest

    0
     
    Well, I went into /home/httpd/vhosts/newdomain.com/conf/httpd.include and added a server alias:
    ServerAlias *.newdomain.com
    This was added right under the line:
    ServerAlias www.newdomain.com
    Hopefully this won't screw anything up, but it seems to work fine. I'd appreciate any comments or information if this is somehow something that can be done in plesk.

    Thanks.
     
Loading...