FAQ  •  Register  •  Login

redirect "/" to "/console"

<<

si_blakely

Serviio newbie

Posts: 17

Joined: Mon Jan 24, 2011 8:57 pm

Post Sun Jun 07, 2020 2:40 am

redirect "/" to "/console"

Is there any mechanism that can allow requests to "/" to be redirected automatically to "/console" on port 23423, or could this be added as an enhancement?

I've set up a reverse proxy for http://serviio.local.network, to map http://serviio.local.network/ to http://home.local.network:23423/, but it would be awesome if going to http://serviio.local.network just went straight to the console.

Thanks
<<

atc98092

User avatar

DLNA master

Posts: 5213

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Sun Jun 07, 2020 3:22 am

Re: redirect "/" to "/console"

No, there's nothing that can be done from the Serviio side. Web browsers go to where they are pointed, unless redirected by something in between. The reverse proxy is really the only way to do it. And I don't know enough about configuring a reverse proxy to know how to do it. But I have no doubt it could be done.

Naturally, if Serviio only required the port number, and used the root of the web server to go straight to the console, that might be a way to do it within Serviio. But there might be some programmatic reason that it either can't be done, or perhaps it's simply a poor practice for web design. That's a question I can't answer.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 16 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

si_blakely

Serviio newbie

Posts: 17

Joined: Mon Jan 24, 2011 8:57 pm

Post Mon Jun 08, 2020 9:24 am

Re: redirect "/" to "/console"

atc98092 wrote:Naturally, if Serviio only required the port number, and used the root of the web server to go straight to the console, that might be a way to do it within Serviio.

That's pretty much what I am suggesting.

Serviio implements a web server, and has a defined set of valid urls (/console, /rest) that implement specific functionality.

Other urls including "/" return an http 404 status (not found), indicating that it has no specific functionality assigned.

If making a request to "/" returned a HTTP 302 Redirect to "/console/" , it would be solve this issue for web browsers, and I can't really see how it would impact functionality given that nothing is defined there anyhow.

Similarly for the mediabrowser port - requesting "/" could redirect to "/mediabrowser/".
<<

atc98092

User avatar

DLNA master

Posts: 5213

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Mon Jun 08, 2020 1:45 pm

Re: redirect "/" to "/console"

Well, as I mentioned there might be some programmatic reason for it. Only Zip could answer that. Since Serviio uses different ports for the console and MB, it seems on paper it could work.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 16 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jun 15, 2020 8:18 pm

Re: redirect "/" to "/console"

I don't think that would work for a redirect, as the same port is used for the api endpoint.
<<

si_blakely

Serviio newbie

Posts: 17

Joined: Mon Jan 24, 2011 8:57 pm

Post Tue Jun 30, 2020 9:35 am

Re: redirect "/" to "/console"

zip wrote:I don't think that would work for a redirect, as the same port is used for the api endpoint.


The API endpoint is /rest - so that would not be impacted by a redirect on "/" to "/console".
All the API requests are explicitly to /rest/..., and rest APIs don't rely on redirect behavior.

It's only browsers that would go to "/", and they are most likely to want to go to /console to display a web page.

It's just a suggestion.

Return to Feature requests

Who is online

Users browsing this forum: No registered users and 15 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.