• 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
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

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