mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1736] Response header 'Server' empty while using with nginx #1373
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#1373
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 @licsber on GitHub (Apr 8, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1736
What version of frp are you using (./frpc -v or ./frps -v)?
both same 0.32.0, also latest.
What operating system and processor architecture are you using (
go env)?both same. one is ubuntu, other is centos.
Configures you used:
Steps to reproduce the issue:
Because i use frp to proxy jupyter notebook, it needs to establish websocket connection to make service avabilable, such as xterm.js and its keneral.
And use nginx to proxy frp so that my service port can be 80 which is already been used.
Now i can use jupyter notebook by http://NAME.MY_DOMAIN:19999, but http://NAME.MY_DOMAIN just give me origin http data,
i see websocket connection has been established successfully but nothing can be sent or received,
i try to find the solution in the Internet, and notice nginx return an empty header "Server", this may be a question.
And i use nginx to proxy jupyter notebook directly with this conf:
it works and return 'Server: nginx/1.16.1'.
And i use frp to proxy jupyter notebook directly:
it works and return 'Server: TornadoServer/6.0.3'.
But combining nginx and frp just booming!
I want know why header 'Server' is empty or just missing?
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
no additional information i can give.
Can you point out what caused this issue (optional)
cannot find, i'm trying to read the source code.
@fatedier commented on GitHub (Apr 8, 2020):
How can i reproduce it in a simple way?
Maybe you can first capture network packages between nginx and frps to find more info.
@licsber commented on GitHub (Apr 8, 2020):
Reproduce:
such as
python -m SimpleHTTPServerand visit directly
result:
and visit http://python.frp.MY_DOMAIN:19999
result:
i feel confused because this time frp did't return 'TornadoServer/6.0.3' mentioned above
with my nginx conf not edited(above).
result:
my server header has been eated ! oh my god.
i try to tcpdump it, but i dont know how to capture packages:
result:
i dont know whats happend.
@licsber commented on GitHub (Apr 8, 2020):
other info if helpd
@fatedier commented on GitHub (Apr 9, 2020):
I followed your reproduce operations and nginx return the header
Server: nginx/1.17.9with no other errors.Maybe it's your own environment problem.
@licsber commented on GitHub (Apr 10, 2020):
I use docker to run nginx:latest (1.17.9) to reproduce, but has correct return header.
Maybe this is a bug on nginx 1.16.1.
Sorry for taking your time. tks!
This issue can be closed. ta!