Nginx Config #11

Closed
opened 2014-05-19 23:09:44 +00:00 by CWSpear · 3 comments
CWSpear commented 2014-05-19 23:09:44 +00:00 (Migrated from github.com)

What nginx config are you using? This is what I was using on my server, but was getting weird stuff going on in the maybe_bounce function with this. Maybe related to something not being passed from Nginx? (see #10)

# Tunnel Proxy
server {
    listen 80;
    server_name *.tunnel.example.com tunnel.example.com;

    location / {
        proxy_set_header    Host $http_host;        
        proxy_pass          http://127.0.0.1:1234;
        proxy_buffering     off;
    }
}
What nginx config are you using? This is what I was using on my server, but was getting weird stuff going on in the `maybe_bounce` function with this. Maybe related to something not being passed from Nginx? (see #10) ``` nginx # Tunnel Proxy server { listen 80; server_name *.tunnel.example.com tunnel.example.com; location / { proxy_set_header Host $http_host; proxy_pass http://127.0.0.1:1234; proxy_buffering off; } } ```
CWSpear commented 2014-05-19 23:15:14 +00:00 (Migrated from github.com)

Sorry, to be more specific, no client is found, which by the way is never outputted by the client (but that's an issue for another day).

It may be related to the fact that I'm using a subdomain? If I pass in subdomain banana and my host is tunnel.example.com, client_id is tunnel and not banana.

Sorry, to be more specific, [no client is found](https://github.com/defunctzombie/localtunnel-server/blob/13bf109a6ed9fa738fea5ccce1ecb67f7f41303a/server.js#L45,L50), which by the way is never outputted by the client (but that's an issue for another day). It may be related to the fact that I'm using a subdomain? If I pass in subdomain `banana` and my host is tunnel.example.com, `client_id` is `tunnel` and not `banana`.
CWSpear commented 2014-05-19 23:16:06 +00:00 (Migrated from github.com)

This happens on client connection, and causes the client to never connect.

This happens on client connection, and causes the client to never connect.
defunctzombie commented 2014-05-20 16:01:35 +00:00 (Migrated from github.com)

This is likely to do with incorrect direction of the client_id when using a subdomain. I thought this was fixed but will take a look.

This is likely to do with incorrect direction of the client_id when using a subdomain. I thought this was fixed but will take a look.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hoelee/server#11