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

Default vhost from bad subhost URL

Discussion in 'Plesk 11.x for Linux' started by johnrt, Jan 7, 2013.

  1. johnrt

    johnrt Basic Pleskian

    11
    85%
    Joined:
    Nov 26, 2012
    Messages:
    25
    Likes Received:
    0
    I have several vhosts defined and they all work fine. For example:
    www.host1.com
    www.host2.com
    www.host3.com

    Many of them have sub-domains defined. For example:
    web.host1.com
    web.host2.com
    web.host3.com

    If a user mis-types something like "webb.host1.com", I don't get a host not found page, but it will display www.host3.com instead.

    From what I can see in /usr/local/psa/admin/conf, the file ip_vhosts_bootstrap.conf is defining the default pages to load just based on the IP because the "Include" in this file references the same config file for the site that gets loaded when one cannot be found.

    Where does this file get generated because the file says not to edit it. So where in the Plesk GUI does this get set?

    Thanks
     
  2. johnrt

    johnrt Basic Pleskian

    11
    85%
    Joined:
    Nov 26, 2012
    Messages:
    25
    Likes Received:
    0
    I've tried commenting the line in the file, and it still redirects to another domain if the subdomain (from another domain) does not exist.

    Any thoughts?
     
Loading...