Question with multiple url binding for frp
-
Hello!
Yesterday I had installed the nodebb on my computer with
win10, nodejs-lts, mongo and nginx.
And after some adjustments it has run stablely.
But now I have some trouble with it when I attempt to do intranet mapping by frp.
The nodebb of mine is built in the internal network for my companies and I had bound it to “mysite.top” through DNS.
———
And now I want to visit the nodebb from Internet for emergency. But I don’t want to sync the data between localhost and vps.
So I choose frp to map the nodebb to “www.mysite.top” which is bound to the IP of my vps.After do frp, I can visit the home index but will get disconnect notification instantly.
Beacuse I can’t bind the nodebb to two different url and I can’t get help from docs. So I come here for your help. -
@PitaJ
Thanks! The notification has disappeared.
But I found another issue that when I sign in on the “https://mysite.top” it will jump to “https://mysite.top/https://mysite.top” which is undoubt 404 page.
What should I do? Or it is a issue from source code?
Thanks again! -
@thathooo
By the way, my url setting in config.json is same with url in nginx.conf .My status quo is that
I set the url in config.json and nginx.conf as “https://mysite.top” which DNS response to my IP in LAN for intranet use.
And for users from the Internet, I do frp to map my nodebb to my vps whose IP is bound to “www.mysite.top” . So I can visit it from internet by https://www.mysite.top .And now “mysite.top” is totally normal.
But “www.mysite.top” occurs incorrect jumping when login in. For example https://www.mysite.top/https://www.mysite.top .Is there some way for me to deal with it?