• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Can't change default virtualhost

Guest
Problem was in 10.4.4 and remained after upgrade to 11.0.9. (on debian)

I'm going to "Settings -> IP Addresses -> Domains" and changing default virtualhost to some virtualhost. Unfortunately, nothing has changed


/etc/apache2/conf.d/zz010_psa_httpd.conf
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
Include '/opt/psa/admin/conf/generated/13410405730.94904100_server.include'
Include '/opt/psa/admin/conf/generated/13410405730.94904100_horde.include'
Include '/opt/psa/admin/conf/generated/13410405730.94904100_atmail.include'
Include '/opt/psa/admin/conf/vhosts_bootstrap.conf*'

Let's look into first included file:

...
DocumentRoot "/var/www/vhosts/default/htdocs"
...

:-(
 
Use /usr/local/psa/bin/transvhosts.pl utility for changing vhosts location.
 
Use /usr/local/psa/bin/transvhosts.pl utility for changing vhosts location.

No, i don't need to change vhosts location. I just want to associate http://<my_sha_red_ip>/ with one of websites, hosted my server. Not with mysterious /default/.

For this, the line
Include '/opt/psa/admin/conf/vhosts_bootstrap.conf*'
has to be placed first in /etc/apache2/conf.d/zz010_psa_httpd.conf
 
Back
Top