FAQ  •  Register  •  Login

HTTPS not working on Ipad

<<

manoluspaguer

Serviio newbie

Posts: 11

Joined: Sun Aug 16, 2015 1:44 am

Post Sat Apr 30, 2016 5:16 pm

HTTPS not working on Ipad

Hi,

I have configured Serviio tu run behind an Apache Server and then configured Apache to use HTTPs. But I don't know why, the movies are not played if I use https in my ipad. This problem is happening only with Ipads (different ipads):

If I use the Mediabrowser behind apache but without https (let's say in 192.168.1.6:6080 -> proxy to 192.168.1.6:23424):
- Chrome OK
- Firefox OK
- Linux OK
- Android OK
- Ipad OK

If I use Mediabrowswer behind apache with https (let's say in 192.168.1.6:6443 -> proxy to 192.168.1.6:23424):
- Chrome OK
- Firefox OK
- Linux OK
- Android OK
- Ipad NOT WORKING

With my Ipad, the problem I get is:

- I access the mediabrowser, type the password
- Navigate to the deesired folder and select the movie
- The div with the player and the movie info appears, but the play button is crossed out, and if I click it, nothing happens.

Do you know why this could be happening?

Kind regards, and thank you in advance :-)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue May 03, 2016 10:19 am

Re: HTTPS not working on Ipad

Maybe the iOS player needs a signed certificate for it to work? Not sure tbh, but most likely it's related to some restriction in iOS itself. In any way, https for streaming is not very good, as it involves a lot of CPU on both, the server and the client to encode and decode a lot of data for the playback to happen.
<<

manoluspaguer

Serviio newbie

Posts: 11

Joined: Sun Aug 16, 2015 1:44 am

Post Sun May 15, 2016 10:29 am

Re: HTTPS not working on Ipad

Hi,

thank you for your response. The certificate should be OK, I generated it using LetsEncrypt and I'm using their certificates in many services. I have done a test.

I'm not sure why it works in other OS (Windows, Linux and Android) with no problems at all. And https with sreaming is working on Ipad (think of Youtube), I can think it's a problem with the "mix" Serviio+Ipad+https.

This is not an important issue to me, I have enabled both http and https access so I can watch my movies using my ipad. But anyway, it would be nice if this is investigated for future versions, maybe other users find this feature absolutely needed.

Until this is fixed, I will continue loving Serviio :-)

Regards!
<<

manoluspaguer

Serviio newbie

Posts: 11

Joined: Sun Aug 16, 2015 1:44 am

Post Sun May 15, 2016 10:32 am

Re: HTTPS not working on Ipad

Hi!

I didn't mention this, but there is another agent working here: Apache+ssl-module.

Maybe this helps
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sun May 15, 2016 10:38 am

Re: HTTPS not working on Ipad

I think I've seen this before and it's that the HLS manifest doesn't contain the correct URLs (i.e. uses http instead of https or similar issues due to not getting all the needed info from the proxy server). You can confirm by looking at the files in Serviio's transcoding temp folder.

A few options
1) Use HTTPS support built into Serviio 1.6.1+
2) Re-write the HLS manifest on the fly using apache
3) Serviio needs to detect when it is going through an SSL proxy and write the manifest accordingly
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon May 16, 2016 1:31 pm

Re: HTTPS not working on Ipad

I've raised a ticket to look at this. https://bitbucket.org/xnejp03/serviio/i ... s-with-ios
<<

manoluspaguer

Serviio newbie

Posts: 11

Joined: Sun Aug 16, 2015 1:44 am

Post Fri May 20, 2016 11:47 pm

Re: HTTPS not working on Ipad

Hi,

thanks for your responses, I did not know about https support in Serviio. I have modified my https Apache virtualhost in order to proxy request to the secure ports of serviio. In case this helps, here is my virtual host:

<IfModule mod_ssl.c>
<IFModule mod_proxy.c>
<VirtualHost *:443>
#ServerName http://www.example.com

ServerAdmin webmaster@localhost
DocumentRoot /var/www/html

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

ProxyPass /console http://localhost:23523/console
ProxyPassReverse /console http://localhost:23523/console

ProxyPass /rest/ http://localhost:23523/rest/
ProxyPassReverse /rest/ http://localhost:23523/rest/

ProxyPass /cds/ http://localhost:23524/cds/
ProxyPassReverse /cds/ http://localhost:23524/cds/

ProxyPass / http://localhost:23524/mediabrowser/
ProxyPassReverse / http://localhost:23524/mediabrowser/

ProxyRequests Off
ProxyPreserveHost On

<Location /console>
AuthName "Secure Area"
AuthType Basic
AuthUserFile /etc/apache2/console.htpasswd
require valid-user
</Location>

SSLEngine on
SSLCertificateFile path_to_cert.pem
SSLCertificateKeyFile /path_to_privkey.pem
SSLCertificateChainFile /path_to_chain.pem
</VirtualHost>
</IFModule>
</IfModule>




I can access the ports (23524 and 23523) directly and everything works fine, but when I access via apache, I get a 502 proxy error. This is what my Apache log is saying:

[Sat May 21 01:39:35.342534 2016] [proxy_http:error] [pid 4718:tid 140705393530624] (20014)Internal error: [client 192.168.1.10:53204] AH01102: error reading status line from remote server localhost:23524
[Sat May 21 01:39:35.342559 2016] [proxy:error] [pid 4718:tid 140705393530624] [client 192.168.1.10:53204] AH00898: Error reading from remote server returned by /
[Sat May 21 01:39:35.398885 2016] [proxy_http:error] [pid 4718:tid 140705385137920] (20014)Internal error: [client 192.168.1.10:53204] AH01102: error reading status line from remote server localhost:23524, referer: https://mediaserver.local/
[Sat May 21 01:39:35.422655 2016] [proxy_http:error] [pid 4719:tid 140705385137920] (20014)Internal error: [client 192.168.1.10:53206] AH01102: error reading status line from remote server localhost:23524, referer: https://mediaserver.local/
[Sat May 21 01:39:35.422674 2016] [proxy:error] [pid 4719:tid 140705385137920] [client 192.168.1.10:53206] AH00898: Error reading from remote server returned by /favicon.ico, referer: https://mediaserver.local/

Any ideas?

Once again, thank you so much for your kind help. Once I get this fixed I will post the solution here, maybe it helps someone else :-)

Take care!
<<

manoluspaguer

Serviio newbie

Posts: 11

Joined: Sun Aug 16, 2015 1:44 am

Post Sun May 22, 2016 7:59 pm

Re: HTTPS not working on Ipad

Hi,

I'm afraid the problem is not related to Apache. If I access the secure port of Serviio directly (using https://servio_IP:23524/mediabrowser) the videos are not played on IPAD.

With this test, I have removed other agents:

- Apache configuration (I'm a disaster so I could have misconfigured it)
- Router, open ports and stuff like that
- Firewalls

Another test:

If I access Serviio localy (opening the browswer directly in the Serviio machine), it does not work either: https://localhost:23534/mediabrowser

I hope this information helps :-)
<<

manoluspaguer

Serviio newbie

Posts: 11

Joined: Sun Aug 16, 2015 1:44 am

Post Tue Sep 27, 2016 6:43 pm

Re: HTTPS not working on Ipad

Hi!

This issue has not been solved in version 1.7. I have tested using secure port and insecure port, and when I try to play the video the "PLAY" icon does nothing.

Could you please have a look?

Thanks!

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 32 guests

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