• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Default vhost from bad subhost URL

johnrt

Basic Pleskian
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
 
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?
 
Back
Top