[GH-ISSUE #56] host option is not working #47

Open
opened 2026-03-02 23:02:00 +03:00 by kerem · 0 comments
Owner

Originally created by @mihaichitic on GitHub (Nov 4, 2021).
Original GitHub issue: https://github.com/agrinman/tunnelto/issues/56

I create tunnel with:
tunnelto --subdomain test --port 443 --scheme https --host local.domain.com --dashboard-port 9443 -v

I have local.domain.com added in /etc/hosts to point to 127.0.0.1.
On local I have my app and when I check the HTTP_HOST header is "test.tunneto.dev" and not "local.domain.com".
If I test with:
curl -H "Host:local.domain.com" https://local.domain.com
I see in my app HTTP_HOST=local.domain.com as expected.

Did I miss something, or it's really a bug?

Originally created by @mihaichitic on GitHub (Nov 4, 2021). Original GitHub issue: https://github.com/agrinman/tunnelto/issues/56 I create tunnel with: `tunnelto --subdomain test --port 443 --scheme https --host local.domain.com --dashboard-port 9443 -v` I have local.domain.com added in /etc/hosts to point to 127.0.0.1. On local I have my app and when I check the HTTP_HOST header is "test.tunneto.dev" and not "local.domain.com". If I test with: `curl -H "Host:local.domain.com" https://local.domain.com` I see in my app HTTP_HOST=local.domain.com as expected. Did I miss something, or it's really a bug?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tunnelto#47
No description provided.