Morning everyone.
I’m running a few of my own systems at home now:
Emby
Grafana
Home-Assistant
Wordpress
VPN
The VPN connection is handled by my firewall, (port 443) and the rest via IIS reverse proxy with ports then remapped in the URL rewrite module (via port 80)
e.g.
emby.example.com —> 192.168.12.101:8096
stats.example.com —> 192.168.12.201:3000
ha.example.com —> 192.168.12.201:8123
wordpress.example.com —> index.php
at the moment my url rewrite rules are configured as follows:
<rule name="Stats" enabled="true" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" />
<conditions logicalGrouping="MatchAny" trackAllCaptures="false">
<add input="{HTTP_HOST}" pattern="stats.example.com" />
</conditions>
<action type="Rewrite" url="http://192.168.12.201:3000/{R:1}" />
</rule>
everything is working fine over port 80, but I want to move to 443, I have certifytheweb installed and have the certificates all set up on the reverse proxy server, but need help with the rules.
I assume that I’ll need to forward port 443 to the IIS server and have it pass back the VPN traffic to the firewall based on the name (e.g. vpn.example.com) and pass on the request to the downstream machines. I’m just unsure how to write the rules to accomplish this. Any help would be really appreciated.
Karl