I am trying to set-up an nginx server as http proxy for the x2go client. My x2go server is a VM on a private network 10.10.10.201. So far I have been using an ssh tunnel to reach the server from outside via ssh on the host. The host runs an nginx server that is connected to the internet. I would like to use nginx as the http proxy to the ssh instance running on the VM. However, when I set "Use proxy server for http connection" and put the host sshproxy.mydomain.com and port 80 in the client, I alwas get the error message: "Cannot connect to proxy server". Nginx does not show any access in the log. Here is my Nginx configuration:
Are you positive that the client can reach the HTTP proxy server?
That doesn't seem to be the case, so check if you can reach http://sshproxy.mydomain.com(:80) via a web browser or other means, such as telnet or netcat.
Try giving it:
CONNECT 10.10.10.201:22 HTTP/1.1 Host: 10.10.10.201
if you can connect via nc/telnet.
Given that the message you get is "Cannot connect to proxy server", though, it seems that your client cannot reach the proxy server - further reinforced by your nginx logs staying empty.
Mihai