From 5d93b500a21020d11153f9da703efe1441a568e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Kooman?= Date: Thu, 9 Mar 2023 12:04:33 +0100 Subject: [PATCH] also document Debian Apache config, fix typos --- CHANGE_HOSTNAME.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/CHANGE_HOSTNAME.md b/CHANGE_HOSTNAME.md index 7fa24ac..67b2374 100644 --- a/CHANGE_HOSTNAME.md +++ b/CHANGE_HOSTNAME.md @@ -3,7 +3,7 @@ these steps: 1. Set the correct hostname; 2. Make sure DNS is correct; -3. Obtain new TLS certifcates and install them; +3. Obtain new TLS certificates and install them; 4. Change the Apache `VirtualHost` configuration; 5. Update `/etc/vpn-user-portal/config.php` to make sure `hostName` (in all profiles) points to the correct name. @@ -30,11 +30,26 @@ or manually obtain them from your CA and install them. # Apache +## Fedora / EL + Rename `/etc/httpd/conf.d/vpn.example.org.conf` to -`/etc/httpd/conf.d/vpn.example.com.conf`. Replace all occurences of +`/etc/httpd/conf.d/vpn.example.com.conf`. Replace all occurrences of `vpn.example.org` with `vpn.example.com` in this file. -# Server +## Debian / Ubuntu + +Disable the old site: + +```bash +$ sudo a2dissite vpn.example.org +$ sudo mv /etc/apache2/sites-available/vpn.example.org.conf /etc/apache2/sites-available/vpn.example.com.conf +$ sudo a2ensite vpn.example.com +``` + +Modify `/etc/apache2/sites-available/vpn.example.com.conf` and replace all +occurrences of `vpn.example.org` with `vpn.example.com`. + +# Server Configuration Modify `/etc/vpn-user-portal/config.php` and look at all `hostName` entries and change them to the new hostname. -- 2.38.5