So this weekend i have been working on migrating my apache2
server to a docker
container which i have no issues with.
I currently have a windows server with SSTP
and Exchange 2016 both using port 443
for traffic.
The idea is to have incoming 443
traffic to be forwarded to my ubuntu server and apache will decide based on the aliases i gave the virtual hosts, where the user will be redirected to. This i have working BUT what if a user is trying to connect to the VPN that also uses port 443? How would i be able to redirect that traffic to my server?
What i had thought was to create a rule for IPTABLES
to have the destination be vpn.domain.com
and forward it to the server but since all subdomains/CNames are just aliases leading to the same host (my external IP), therefore all requests on port 443
will just be sent to the windows server bypassing my webhost which is not what i want.
What i also actually tried was to use apache to forward any incoming connections on 443
via ServerAlias vpn.domain.com
to the windows server since its on 443
but that did not work.
Im not sure how i can go about this and im thinking i would just need to create a new VPN service on my ubuntu server afterall. If there is any way i can achieve what i need, that would save me the hassle.
Thanks