Setting up Apache sites on a new port


For our staging environments, it's useful to have multiple ports available to test different features that are in flight at the same time.

Notes on the basic config for this, in ufw and Apache.

1 Firewall

ufw allow 8443

2 Set up the config in Apache

2.1 Edit /etc/apache2/ports.conf


Listen 8443

to the relevant part of the file.

2.2 Set up Apache site config

Same as usual, except

<VirtualHost *:8443>

3 Elsewhere in the garden

Notes that link to this note (AKA backlinks).

This page last updated: 2021-03-30 Tue 10:04. Map. Recent changes. Source. Peer Production License. Webring: << random >>