Tunnel a local webserver to the Internet
First: we need a server accessible from your computer by ssh, in this sample we use testing.wentook.com.
Second: We will work with Nginx Proxy in the internet server:
Sample nginx conf:
server {
listen 80;
server_name testing.wentook.com;
location / {
proxy_pass http://127.0.0.1:8801/;
}
}
Important: remember port 8801
Third: In my localhost I have installed nginx and it listen port 81.
Sample nginx conf:
server {
listen 81;
root /usr/share/nginx/www;
index index.html index.htm;
server_name localhost;
}
And four:
ssh root@testing.wentook.com -R *:8801:localhost:81
And you will not have to worry about firewalls.