So hello, i am hosting in my home home server web server, and i would like to acces it globaly so my idea was to setup ssh tunnel the setup is as follows my home server has web server on port :8080 and on my remote server that is a accese globaly is stream.domain.dn its a wildcard domain i would like to host it there, or forward it there my apache server is setup as follow
<VirtualHost *:80>
ServerName stream.domain.dn
ServerAlias www.stream.domain.dn
DocumentRoot /www/test1
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.stream.domain.dn [OR]
RewriteCond %{SERVER_NAME} =stream.domain.dn
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
so far its hosting .html website for stesting ssl cert and it works fine, how do i setup apache to get it to host my ssh tunnel here? i tried ssh -L 80:localhost:8080 -N picaica@the-ip-of-mu-server but i always get error
bind [127.0.0.1]:80: Permission denied
channel_setup_fwd_listener_tcpip: cannot listen to port: 80
so i am not sure what to do, and yes i am using bind as name resolution what is the best way to use ssh tunel?