I've created the following port forwarding:
ssh -vL localhost:4433:example.com:443 remote-linux-host
Note: I'm using 4433 on my local instead of 443 to avoid running with sudo.
however when I go to https://localhost:4433/, after ignoring the certificate check, there is the following error (on both Chrome and Firefox):
404 - Not Found
Same when using curl:
$ curl -s https://localhost:4433/ | html2text
<?xml version="1.0" encoding="iso-8859-1"?>
****** 404 - Not Found ******
How do I make the port forwarding for HTTPS?
My aim is to open https://example.com/ (which works fine over HTTPS) on my local (port 4433) via remote server.