LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-27-2020, 12:32 PM   #1
radiomanuk
LQ Newbie
 
Registered: Feb 2020
Posts: 2

Rep: Reputation: Disabled
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
 
Old 02-29-2020, 08:49 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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>
 
Old 03-01-2020, 05:05 AM   #3
radiomanuk
LQ Newbie
 
Registered: Feb 2020
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you - I'll have a play with it
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why am I not able to redirect using htaccess. It says too many redirect rules. swathi.akkineni Linux - Newbie 1 07-31-2015 03:20 PM
Nginx, Horde, Https, Redirect, This webpage has a redirect loop axetone Ubuntu 0 02-08-2015 10:44 PM
Redirect https apache requests to folder not in apache root bax Linux - Enterprise 4 04-12-2010 01:16 PM
Need urgent help w. Apache "Redirect" Sagebrush Gardener Linux - Server 2 10-17-2007 02:20 PM
Apache URL issue - will redirect help... rlprofessional Linux - Newbie 9 06-16-2006 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration