Skip to content
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,如何使用nginx整合nps实现内网穿透 #1263

Open
yujunchengg opened this issue Dec 6, 2023 · 2 comments

Comments

@yujunchengg
Copy link

我云服务器是windows server,我现在nginx有个conf文件,server_name是个二级域名,有个location配置,我先是proxy_pass到127.0.0.1:8080端口,然后我去nps后台添加隧道8080端口,它给我说被占用了,我去查找nps配置文件,发现有个http_port的配置,我有点不太懂这个是啥情况,我用frp的话,按这个机制是可以代理成功的,因为frp我那个conf文件里面也设置的8080端口都可以,到了nps这里就不行了,我最终需求是要利用云服务器本地的这个8080端口代理我局域网某个主机的8080端口,这个地方一直给我报占用,我到底该咋个处理

@mybove
Copy link

mybove commented Dec 20, 2023

看教程啊。用nginx把端口反代到nps端口即可

@lliuql
Copy link

lliuql commented Jan 9, 2024

8080端口不是给了nps的管理界面了吗?或者可以把这个改掉就好了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants