• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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