This is an ideal when you are trying testing your server on a different port. It can be done by using ssh -L forwarding port number

sudo ssh -L 80:IP-ADDRESS:8081 [email protected]

Don’t forget to set your site to that

127.0.0.1 your-site.com