editing imported virtual hosts/configurations

2 posts / 0 new
Last post
#1 Sat, 02/28/2015 - 04:30
Kintaro

editing imported virtual hosts/configurations

Hello,

I'm importing existing virtual hosts to a virtualmin installation (same server).

I noticed that the importing process didn't move website's files from the actual webroot /var/www/domain.tld/ to the "virtualmin" webroot /home/user/public_html (or /home/user/domains/public_html. And also logs are not "imported" on the virtualmin's logs directory.

Files and configuration's files remain in their original directories.

Now, if I want to make imported servers look like identical to newly created I have to manually edit directives?

...or maybe it's better and faster to create a new server with a different domain, then migrate manually files and dbs, and then change the domain to the correct one?

Regards

Mon, 03/02/2015 - 09:08
andreychek

Howdy,

When using Virtualmin's "Import Virtual Server" option, that's an option that tells Virtualmin about existing domains on the server. It assumes those are setup exactly as you need.

In a lot of cases, moving a web app would break it, so it doesn't attempt to move that.

Following your second suggestion would be a good way to handle that -- create a temporary domain name, copy all the files, websites, databases, and the like into that, delete the existing Virtual Server, then rename that temporary one into the one you wish to use.

-Eric

Topic locked