~fkooman/vpn-documentation

5d93b500a21020d11153f9da703efe1441a568e8 — François Kooman 1 year, 6 months ago 43aa2fd
also document Debian Apache config, fix typos
1 files changed, 18 insertions(+), 3 deletions(-)

M CHANGE_HOSTNAME.md
M CHANGE_HOSTNAME.md => CHANGE_HOSTNAME.md +18 -3
@@ 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.