nginx reverse proxy for ssh reverse tunnel?

Francis Daly francis at daoine.org
Sun Jul 19 08:29:32 UTC 2020


On Sun, Jul 19, 2020 at 02:45:46AM -0400, jalil1408 wrote:

Hi there,

>     * 192.168.1.102 (remote machine) : Ubuntu + curl
>         curl http://192.168.1.100:6033/api/Users ==> works well
>         curl http://192.168.1.100/tunnel/api/Users ==> "the page you are
> looking for is temporarily unavailable" !!!

That suggests that you want a request to port 80 for /tunnel/X to be
proxy_pass'ed to port 6033 for /X. (As in: remove the "/tunnel" part.)

Do your nginx or port-6033 logs show the requests made and responses sent?

>         location /tunnel/ {
>             proxy_pass http://127.0.0.1:6033;

Add "/" after 6033.

http://nginx.org/r/proxy_pass

Cheers,

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list