LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache redirect help (https://www.linuxquestions.org/questions/linux-newbie-8/apache-redirect-help-4175670395/)

radiomanuk 02-27-2020 12:32 PM

Apache redirect help
 
Hello

I wonder if anyone can help me please...

I stream a couple of radio services. The stream supplier is using https:// for their website.

My streams are http:// but with the new Chrome update they are not working because Chrome now doesn't like mixed content. Chrome tries to change the streams to https:// but because my stream are using port 8000 they do not change.

Its a bit of a strange setup as I am also using Apache to redirect the stream to my stream supplier using VirtualHost:

<VirtualHost stream.example.co.uk:8000>
ServerName stream.example.co.uk
Redirect /audio/7/ https://listen.openstream.co/4xxx/audio/
</VirtualHost>

So I tell the stream host that the stream is at

http://stream.example.co.uk:8000/audio/7/

DNS points example.co.uk to Apache on my centos6 server and Apache redirect points the stream to openstream

This worked well for years until Chrome update earlier this month and now its not.

It still works in Safari, but obviously i want it to work in Chrome

Any ideas how I can change my Apache so that it redirects

https://stream.example.co.uk:8000/audio/7/

to https://listen.openstream.co/4xxx/audio/

also?

Many thanks for your help

bathory 02-29-2020 08:49 AM

Quote:

Any ideas how I can change my Apache so that it redirects

https://stream.example.co.uk:8000/audio/7/

to https://listen.openstream.co/4xxx/audio/

also?
You can change the vhost stream.example.co.uk:8000 to use SSL, by obtaining and installing a certificate for it.
Then you can use the same Redirect to the backend streaming server on the SSL vhost:
Code:

<VirtualHost stream.example.co.uk:8000>
 SSLEngine on
 SSLCertificateFile      /path/to/ssl.crt
 SSLCertificateKeyFile  /path/to/ssl.key

# Other configuration stuff #

ServerName stream.example.co.uk
Redirect /audio/7/ https://listen.openstream.co/4xxx/audio/
</VirtualHost>


radiomanuk 03-01-2020 05:05 AM

Thank you - I'll have a play with it


All times are GMT -5. The time now is 03:54 PM.