[GH-ISSUE #464] 0.13新版本开启 vhost 会与 nginx 冲突 #352

Closed
opened 2026-05-05 12:09:47 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @niluanxy on GitHub (Sep 14, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/464

What version of frp are you using (./frpc -v or ./frps -v)?
frps v0.13

What operating system and processor architecture are you using (go env)?
centos 7

Configures you used:
开启了 vhost 功能,端口分别是 80 443

Steps to reproduce the issue:
开启 vhost 后,重启发现导致 nginx 无法启动,然后试着端口为 180 1443,nginx能启动,但是想通过 nginx 转发直接访问绑定的服务就不行,只能通过 nas.xxx.com:180 这种方式访问,有别的办法或者配置方式没。

Originally created by @niluanxy on GitHub (Sep 14, 2017). Original GitHub issue: https://github.com/fatedier/frp/issues/464 **What version of frp are you using (./frpc -v or ./frps -v)?** frps v0.13 **What operating system and processor architecture are you using (`go env`)?** centos 7 **Configures you used:** 开启了 vhost 功能,端口分别是 80 443 **Steps to reproduce the issue:** 开启 vhost 后,重启发现导致 nginx 无法启动,然后试着端口为 180 1443,nginx能启动,但是想通过 nginx 转发直接访问绑定的服务就不行,只能通过 nas.xxx.com:180 这种方式访问,有别的办法或者配置方式没。
Author
Owner

@niluanxy commented on GitHub (Sep 14, 2017):

已经解决了,nginx 里面添加个转发,但是需要转发域名,而不是ip,比如 nas.xxx.com:180 这样就可以了,两个都不冲突,也能直接通过 nas.xxx.com 的方式访问。

<!-- gh-comment-id:329383482 --> @niluanxy commented on GitHub (Sep 14, 2017): 已经解决了,nginx 里面添加个转发,但是需要转发域名,而不是ip,比如 nas.xxx.com:180 这样就可以了,两个都不冲突,也能直接通过 nas.xxx.com 的方式访问。
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: github-starred/frp#352
No description provided.