• 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.

Correct way of editing vhost configs?

S

SFMAdmin

Guest
Hi,

We're in the process of migrating to Plesk 10 from plesk 8.

I've noticed that the /var/www/vhosts/<domain>/conf/ directory now contains some sort of versioned vhosts system.

Can you direct me to the correct way modify parameters for particular vhosts?
 
This basically outlines how to change the defaults for every site, not just one vhost. What is the correct way to edit a vhost for one domain?
 
For anyone else looking for how to do this, I didn't think to look in the generated version file:
# ATTENTION!
# DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK
# FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE CUSTOM
# MODIFICATIONS TO BE APPLIED TO THE CONFIGURATION, PLEASE, PERFORM THEM IN THE
# FOLLOWING FILE(S):
#/var/www/vhosts/domain/conf/vhost.conf
#/var/www/vhosts/domain/conf/vhost_ssl.conf

and then run

$PRODUCT_ROOT_D/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=domain.tld
 
Back
Top