Re: [webmin-l] Backup and Restore on SSL Sites
John Hinton <[email protected]>
| Newsgroups | gmane.comp.web.webmin.general |
|---|---|
| Message-ID | <[email protected]> |
On 2/4/2017 5:50 AM, John Hinton wrote: > > On 2/3/2017 8:29 PM, Jamie Cameron wrote: >> On 02/Feb/2017 09:01 John Hinton <[email protected]> wrote .. >>> Hi Jamie, >>> >>> Do you ever feel like telling us all to go jump in a lake? Maybe even >>> filled with alligators? >> Never! I love bug reports :-) > You are officially warped! Thank God. I'm not alone! >>> I ran a backup of a SSL site to another server. Then a restore on the >>> other server. It didn't pick up the apache directives. It seems to be >>> looking for the port 80 VirtualHost container and not seeing the port >>> 443 container. >>> >>> The browsers don't want mixed content, so we're rolling through >>> converted sites replacing all internal links and any external links that >>> have a https option. Once done, we're doing a permanent redirect from >>> http to https. From what I read, this is how it should be done... and we >>> know everything you read on the net it true. ;) >> Hmmm .. was this backup and restore done using Virtualmin? If so, it should >> have brought both the port 80 and 443 virtualhosts across. >> >> > Yes, this was using Virtualmin. > > Here's what I'm doing: > 1. Create a SSL site on an existing non-SSL Virtual Server. > 2. I don't see a method for killing the non-SSL version, so I manually > convert the port 80 entry to a permanent redirect to the port 443 site > manually in my apache vhost.conf file. > 3. Backup the Virtual Server to another system with Virtualmin. > 4. Restore that backup. > > I'll get around to running another one of these pretty soon and let you > know more about what happens. > > Or, maybe I'm doing something using a wrong method within Virtualmin? > Maybe Virtualmin could have a "Convert Site to SSL Only" function, which > would convert the port 80 side to a permanent redirect to the https > site? Or maybe that ability is there and I'm just dense? I've been under > serious sleep deprivation for the last several months. HAH! > Hmmm... this is a problem at a lower level. Here's the output of my restoration attempt. Failed to restore on host.servername.com : Checking for missing features .. .. all features in backup are supported Checking for errors in backup .. .. no errors found Starting restore.. Extracting backup archive files .. .. done Restoring Virtualmin settings .. Restoring custom fields, links, categories and shells .. .. done .. done Re-creating virtual server domain.com .. Creating administration group groupname .. .. done Creating administration user username .. .. done Creating aliases for administration user .. .. done Adding administration user to groups .. .. done Creating home directory .. .. done Creating mailbox for administration user .. .. done Adding to email domains list .. .. done Adding new virtual website .. .. done Adding webserver user apache to server's group .. .. done Performing other Apache configuration .. .. done Setting up scheduled Webalizer reporting .. .. no logging directive found in webserver configuration! Creating Webmin user .. .. done Applying web server configuration .. .. done Re-loading Webmin .. .. done Saving server details .. .. done Restoring backup for virtual server domain.com .. Restoring virtual server password, quota and other details .. .. done Updating administration password and quotas .. .. done Restoring Cron jobs .. .. done Extracting TAR file of home directory .. .. done Setting ownership of home directory .. .. done Restoring Apache virtual host configuration .. .. no Apache virtual host found! Restore failed! I replaced what were proper domain names, the username and the groupname above. They were correct. This is going from a CentOS 5 install to a CentOS 7 install. The one main difference I see between the systems is the base user directory. The 5 system is using /var/www and the 7 system /home. The new user directory is created and it looks like at least most of the file structure is done. Yes, the domain is a working website and such on the 5 system. There for sure is an Apache virtual host. Under Show what will be restored, I get: Virtual server password, description and other details Administration user's password, quota and Cron jobs Mail/FTP users and mail aliases Apache webserver configuration Webalizer configuration and schedule Logrotate configuration for log file Webmin ACL files Server's home directory and web pages So it's at least finding the Apache config in the gz file. John Hinton ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot - Forwarded by the Webmin mailing list at [email protected] To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list