mirror of
https://github.com/mmatczuk/go-http-tunnel.git
synced 2026-05-15 14:16:17 -06:00
[GH-ISSUE #18] Add host_header modifier in tunnel configuration #5
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/go-http-tunnel#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mmatczuk on GitHub (Feb 21, 2017).
Original GitHub issue: https://github.com/mmatczuk/go-http-tunnel/issues/18
@jonreeves commented on GitHub (Sep 27, 2017):
Would be really useful because most of my projects that run Apache or Nginx are expecting to respond only to a particular Host request.
@findmyway commented on GitHub (Nov 23, 2017):
Any update here?
I encounter a problem, not sure whether it is related to this thread.
My website is using the 4444 port on the server. By using Nginx, I proxy request to 80 port to my website.
In the meantime, I want to use go-http-tunnel to access my local machine, so I set the go-http-tunnel service listen port 5555(since 80 is already been used). And I write the nginx config as follows:
The client config is as follows:
On my server, I can use
wget localhost:5555to access the local machine. Request of tunnel.myownsite.com saidThank you very much!
@K1Z4 commented on GitHub (Jan 6, 2019):
In case anyone else has the same issue:
If you're having issues after using Nginx as a reverse proxy you should try adding the following to your location block:
More details here