• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.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