• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question rename virtual host directory

gmk77

New Pleskian
Server operating system version
linux
Plesk version and microupdate number
18.0.52
Hi,

I would like to know if there is a way to change the name of the virtual host directory of a domain. For example when I create the domain "mydomain.com" in plesk the corresponding directory is created in /var/www/vhosts/mydomain.com, I would like to change the name /var/www/vhosts/mycustomname....is this possible?

thank you
 
@Kaspar - as usual - is perfectly right. But I'd like to add that this directory is of minor importance. Many providers create a generic, non-working domain name as a kind of "root" domain for users, like "customer345678.xx" and then add the "real" domain(s) later with "Add domain" to avoid the issue from start. In general however, no web server content will be placed into that directory directly, but will always go into a document root directory located under the main subscription directory.

The document root directory can be set when "Add Domain" is used (or "Add Subdomain"):

1686057796360.png

When you type in a domain name, the document root field is populated with the same name, but this is only a suggestion. It can be overwritten by the subscriber, and Plesk will create a custom directory, too, if the subscriber enters a different string.

It is also possible to change an existing documen root path. For that File Manager can be used to rename the directory, and the document root directory can be renamed in "Hosting Settings" of the domain configuration to the renamed directory.

If I am wrong, please let me know, maybe I just didn't get the question right.
 
Back
Top