๐Ÿ“š node [[setting up apache sites on a new port]]
๐Ÿ“• text contributed by @neil ๆœฌ ๏ธ๐Ÿ‘ ๐Ÿ“

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]].

Firewall

ufw allow 8443

Set up the config in Apache

Edit /etc/apache2/ports.conf

Add

Listen 8443

to the relevant part of the file.

Set up Apache site config

Same as usual, except

<VirtualHost *:8443>
Receiving pushes... (requires JavaScript)
Loading context... (requires JavaScript)
๐Ÿ“– stoas (collaborative spaces) for [[setting up apache sites on a new port]]