Hi everybody,

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:

server {
    listen 80;
    server_name sshproxy.mydomain.com;

        access_log  /var/log/nginx/sshproxy-access.log;
        error_log  /var/log/nginx/sshproxy-error.log warn;


    auth_basic "Restricted";
    auth_basic_user_file htpasswd;


    location / {
        proxy_pass http://10.10.10.201:22;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        proxy_read_timeout 3600s;
        proxy_send_timeout 3600s;
        proxy_connect_timeout 3600s;
    }
}
Can anyone help me to get this working?
_______________________________________________
x2go-user mailing list -- [email protected]
To unsubscribe send an email to [email protected]
${mailinglist_url} (substitution broken, will need mailman upgrade)
https://lists.x2go.org/postorius/lists/x2go-user.lists.x2go.org

Reply via email to