mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1582] Client 端 nginx 提供的 web 服务可以访问,javaweb 提供的 web 服务则无法访问 #1253
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#1253
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 @flanliulf on GitHub (Dec 27, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1582
What version of frp are you using (./frpc -v or ./frps -v)?
frp_0.30.0
What operating system and processor architecture are you using (
go env)?server: aliyun CentOS 7.7 64位
client: macOS Catalina 10.15.2
Configures you used:
Server:
[common]
bind_port = 7100
vhost_http_port = 8080
Client:
[common]
server_addr = xx.xx.xx.xx
server_port = 7100
[web]
type = http
local_port = 9090
custom_domains = www.domain.com
Steps to reproduce the issue:
Describe the results you received:
本地如果是 nginx 的 web 服务可以正常访问,但是 java web 程序的 web 服务无法访问。
报错信息:
do http proxy request error: net/http: timeout awaiting response headers
Describe the results you expected:
希望能够访问到 java web 程序提供的 web 服务。
Additional information you deem important (e.g. issue happens only occasionally):
Client 端本地防火墙已关闭,阿里云对应入方向安全组端口 8080 已设置。
Can you point out what caused this issue (optional)
@fatedier commented on GitHub (Jan 5, 2020):
这个问题应该自行检查自己的 nginx web 服务和 java web 服务的区别,用排除法定位问题,简单猜测是 host 的问题,可尝试 host_header_rewrite 参数。