× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Re: Wrong URL in Apps when port is forwarded to other port

shibby
Aspirant

Wrong URL in Apps when port is forwarded to other port

Hi,

ReadyNAS OS6 gui is working on default port 443. From LAN all works correct, but i want have access from the internet. Port 443 i have already used well i made port forwarding: external 444 to internal 443. GUI works ( https://my_domain:444/ ) but in apps are wrong link (without port) and icons are not showing (link to icons is also without port). Can you fix it in next release?

Best Regards.
Message 1 of 7
Leroy1
Aspirant

Re: Wrong URL in Apps when port is forwarded to other port

How could they fix this?

This depends on your port forwarding configuration because you set the external port to something else. The NAS server can't look in the port forwarding configuration.
Message 2 of 7
shibby
Aspirant

Re: Wrong URL in Apps when port is forwarded to other port

but in apps are wrong link (without port) and icons are not showing (link to icons is also without port).

my mistake. Link are ok. Only link to icons are without GUI port.

How could they fix this?


very easy. Take origin hostname WITH port. In config.xml file for each apps we can see something like this
<LaunchURL>http://localhost:7082/</LaunchURL><!-- 'localhost' will be replaced by framework JS. -->

Now, when i will enter to gui using URL https://mydomain.com/ then all link to the icons are changed to (for example) https://mydomain.com/apps/logo/phpmyadminr6.png well GUI is changing URL "on the fly". But when i enter to the GUI using URL https://mydomain.com:444/ then link to the icon is https://mydomain.com/apps/logo/phpmyadminr6.png but should be https://mydomain.com:444/apps/logo/phpmyadminr6.png

Should be simple to fix it.
Message 3 of 7
shibby
Aspirant

Re: Wrong URL in Apps when port is forwarded to other port

Will be this fixed in next release? Or tell me how can i change default https port to (for example) 442? When i go to settings -> https i cannot change default port 443. There is field of Port 2 but when i set there port 442 then i cannot save settings. Is there any way to see apps icons when GUI port IS NOT 443??
Message 4 of 7
Jarkod
Aspirant

Re: Wrong URL in Apps when port is forwarded to other port

shibby wrote:
Hi,

ReadyNAS OS6 gui is working on default port 443. From LAN all works correct, but i want have access from the internet. Port 443 i have already used well i made port forwarding: external 444 to internal 443. GUI works ( https://my_domain:444/ ) but in apps are wrong link (without port) and icons are not showing (link to icons is also without port). Can you fix it in next release?

Best Regards.


That was the first thing I noticed when I moved ownCloud to 444 port (thanks to your instructions shibby). Before that the link to ownCloud from Apps or System tabs was https://xxx.xxx.xxx.xxx/owncloud, now it's https://xxx.xxx.xxx.xxx:444/owncloud but the actual ownCloud address is https://xxx.xxx.xxx.xxx:444 so clicking on the OwnCloud icon in the FV results in 404 Not Found error.
There's similar problem with Piwigo: even though the link is correct (xxx.xxx.xxx.xxx:7091), because I've forced Piwigo to use https, clicking on the Piwigo icon in the FV gives 400 Bad request error (You're speaking plain HTTP to an SSL-enabled server port).

As for different port for the FV, I did managed to enter the second https port and save the configuration, but the FV used two port then: 443 and a new one. Seems currently it's impossible to use different port than 443 for the FV.

I think it'd be very usefull to have a possibility to configure which port which apps uses. Not only the FV, but all of them.
Message 5 of 7
shibby
Aspirant

Re: Wrong URL in Apps when port is forwarded to other port

Fix link is not a problem. Go to /apps/owncloud/config.xml

search line with something like that
<LaunchURL>http://localhost:7082/</LaunchURL><!-- 'localhost' will be replaced by framework JS. -->
and
<ReservePort>7082</ReservePort>

and change port here to 444. After that link should works. But icon will still not displayed. IMO problem is in file /frontview/dashboard/frontview_1.0.2.64.js
Message 6 of 7
xeltros
Apprentice

Re: Wrong URL in Apps when port is forwarded to other port

you could use iptables to redirect the port 444 to the port 443 (the opposite of your forwarding). You also could edit the apache config. both techniques require SSH.
Message 7 of 7
Top Contributors
Discussion stats
  • 6 replies
  • 4836 views
  • 0 kudos
  • 4 in conversation
Announcements