• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Adding website sets the wrong default vhost

L

Laurent Bauer

Guest
Hello,

Each time a site is added on my plesk box, the httpd.include file is regenerated with the wrong default vhost.
I get the same problem when running 'websrvmng -av'.
Here is what httpd.include looks like :

<Directory "/var/www/vhosts">
[...]
<Directory "/var/mailman">
[...]
</IfModule>
Include <mysite1>/conf/httpd.include

[IP-based VirtualHosts]

Include <mysite2>/conf/httpd.include
Include <mysite3>/conf/httpd.include
...


The "mysite1" declaration should be inserted in last block with other "Include"s, but it is inserted before the default vhost declaration, so "mysite1" is displayed instead of the default server page (which we customized for a particular use)

I tried using --(re)set-default-domain but it generates the same file as websrvmng -av.
I noticed that this "mysite1" was the first domain in alphabetical order. But when I disable this domain and run a reconfigure again, I don't get the second domain at the first one's place as I imagined...

Does anyone know this issue ?

Thanks

Laurent
 
I think we've got the solution :
The GUI does not allow to uncheck a default domain (in the IP pool configuration section) once it is set.

But you can manually connect to psa database and reset 'default_domain_id' in 'IP_Addresses' table :

update IP_Addresses set default_domain_id=NULL where ip_address='...'

Then websrvmng does not set a default vhost, i.e it lets /home/httpd/vhosts/default as the default vhost.
 
Back
Top