-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何配合nginx使用? #53
Comments
我测试了一下这种情况是可以通过的,你可以检查下以下几个地方是否存在问题:
|
1、配置文件中的auth_token 已配置成相同的了 |
你这个 frpc 好像用的不是最新的 从日志来看像是连接刚建立就被中断了,如果不是上面的原因,可以将 frp 的代理类型 设置成 tcp 的方式测试一下是否正常,日志级别设置成 debug,方便定位问题。 |
frpc是winx64版本的0.7.0 ,包里面的frps.ini和linux64包里的frps.ini略有不同 |
以下是debug级别的通信信息: |
从日志里面打印的代码行数来看,确实不是 0.7.0 版本的客户端,你用 ./frpc.exe --version 看一下版本号是否正确。而且我看 0.7.0 版本 windows 和 linux 压缩文件里的 frps.ini 是一样的。 |
问题找到了,frpc确实不是0.7.0的,包是使用远程服务器下载的,不知怎么的下到了0.6.0的
frps.ini 配置 修改 [common]
#与nginx里的端口号相匹配
vhost_http_port = 8008
[web01]
type = http
auth_token = demo.open.it
# 域名
custom_domains = demo.open.it frpc.ini 配置 [common]
auth_token = demo.open.it 其他的使用默认配置 |
@openmynet 请教一下,我客户端也配置了一个 nginx,然后拿不到真实 IP,access-log 打出来都是 127.0.0.1,frp 配置方式是客户端特权模式 |
@se77en 客户端的nginx配置和网站服务器nginx配置类似
|
请问你是用nginx来免端口访问内网的吗?我使用的是最新0.37.1版本,已经不适用你的配置了。能帮我看一下吗?如果可以请回复。 |
远程服务器里有web服务,使用nginx作为服务前端,frp要如何配合nginx使用?
以下配置测试了行不通。需要如何配置
nginx配置:
server {
listen 80;
server_name demo.*;
location / {
proxy_pass http://127.0.0.1:7000;
}
}
frps.ini 配置
[common]
bind_port = 7000
vhost_http_port = 8008
[web01]
type = http
custom_domains = demo.exampledomain.com
frpc.ini 配置
[common]
server_addr = 162...*
[web01]
type = http
local_ip = 127.0.0.1
local_port = 80
The text was updated successfully, but these errors were encountered: