Francis Daly
July 19, 2020 04:30AM
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@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx reverse proxy for ssh reverse tunnel?

jalil1408 July 19, 2020 02:45AM

Re: nginx reverse proxy for ssh reverse tunnel?

Francis Daly July 19, 2020 04:30AM

Re: nginx reverse proxy for ssh reverse tunnel?

jalil1408 July 19, 2020 02:53PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 184
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready