US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > ISPmanager > General technical discussion


Reply
 
Thread Tools
Old 10-04-2016, 10:56 PM   #1
Junior Member
 
Join Date: Oct 2016
Location: Zurich, Switzerland
Posts: 4
NAG is on a distinguished road
Question 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
__________________
--
NAG DATACENTER AG - Stadthausstrasse 12 - CH-8400 Winterthur - Tel. +41 52 5110911 - www.nag-datacenter.net
NAG is offline   Reply With Quote
Old 10-05-2016, 10:24 AM   #2
Banned
 
Join Date: Dec 2014
Posts: 2
Pavel_S is on a distinguished road
Default

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
Pavel_S is offline   Reply With Quote
Old 10-07-2016, 11:50 AM   #3
Junior Member
 
Join Date: Oct 2016
Location: Zurich, Switzerland
Posts: 4
NAG is on a distinguished road
Default 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!)
__________________
--
NAG DATACENTER AG - Stadthausstrasse 12 - CH-8400 Winterthur - Tel. +41 52 5110911 - www.nag-datacenter.net
NAG is offline   Reply With Quote
Old 10-16-2016, 07:14 PM   #4
Support team
 
Join Date: Oct 2013
Posts: 44
usaafko is on a distinguished road
Default

You should not remove www-domains. You could copy files from one directory to another
usaafko is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:39 PM.