ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   General technical discussion (http://forum.ispsystem.com//forumdisplay.php?f=8)
-   -   Howto change root directory (http://forum.ispsystem.com//showthread.php?t=2649)

NAG 10-04-2016 10:56 PM

Howto change root directory
 
When adding a new domain itīs possible to enter the domains root directory path.

How to change these path without deleting the domain? The path field did not appear when clicking on "edit".

I can change the document root via config (http-settings), but this is not enough because the Letsencrypt certificate robot uses the root directory field content to create the .well-known directory and not the DocumentRoot which is set in individual http-settings.

So I need a possibility to change the root directory for a domain without using the special config and without deleting the domain.

Regards,
Rob

Pavel_S 10-05-2016 10:24 AM

Rob,

Could you please let us know typical examples or situations when you would need to change the root directory for a domain? Such information might be useful for us to figure out what we can do here.

Best Regards,
Pavel

NAG 10-07-2016 11:50 AM

Root path change
 
This happens quite often.

When you install a new version of the installed software / cms it makes sense to create a subdomain maybe new.domain.com pointing to the new version directory.

After everything is checked the original path domain.com should be changed to the new version of a software.

Existing:
/var/www/domain.com/cms_v1 = domain.com

Now installing:
/var/www/domain.com/cms_v2 = new.domain.com

Checking CMS and everything is well:

Change existing:
/var/www/domain.com/cms_v1 to /var/www/domain.com/cms_v2 = domain.com

deleting testing domain:
new.domain.com (path should not be removed - only as an option - now when deleting a domain the whole data path is removed - quite bad!)

usaafko 10-16-2016 07:14 PM

You should not remove www-domains. You could copy files from one directory to another


All times are GMT +2. The time now is 07:33 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.