I am trying to set up a subdomain subdomain.domain.com to point to ipaddress:443(ssl websitel on my homeserver).
443 is forwarded to 443 of my internal VM.
I have forwarded ports on my router, configured apache using guides, installed a self signed cert. I can reach my external ip when I use https://externalip and it works as it is supposed to.
When I use just the ip and port ie: externalip:443, it sometimes works and sometimes I get the following error.
"Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please."
The major problem I have is setting up dns records on namecheap. I have create a A Record with a subdomain. The created a srv using the appropriate ports. Followed the guides and talked to their text support who said they are configured correctly.
When I use the dns to connect to the site, subdomain.domain.com it points me my ip address without a port. As the page that comes up with my router login and not the website of 443.