LinuxQuestions.org
Review your favorite Linux distribution.
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 06-21-2011, 02:46 AM   #1
cthugr
LQ Newbie
 
Registered: Jan 2011
Posts: 11

Rep: Reputation: 0
Apache reverse proxy question


Greetings,

I have a question regarding the possibility of streaming video using an Apache web server configured as a reverse proxy.

Suppose I have a local web server and areverse proxy that is abroad. I want users that are nearer the reverse proxy to be served by it and not my local web server. I know in general how to configure this and there is a lot of documentation. But can it be configured to support video file streaming without saving all the media content in the reverse proxy disk?

Thank you in advance,

Iordanis Gregoriou
 
Old 06-21-2011, 08:52 AM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 972

Rep: Reputation: 117Reputation: 117
Mmmhh, but the traffic will in any case always be sent to the users by the reverse proxy.., or? => no difference for all the users.
Or perhaps I just didn't understand what you want to do

You aren't looking by chance for a load balancer, redirecting users to one of the two sources depending on their source address?
Bye
 
Old 06-21-2011, 09:01 AM   #3
cthugr
LQ Newbie
 
Registered: Jan 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Hi Pearlseattle,

Thank you for your quick reply!

I think what you're describing as a load balancer is what I am trying to describe. Suppose the local server is, e.g. in Cyprus and all local requests should be served by this server, and the reverse proxy is in UK, which should serve all the other requests. My question is if the reverse proxy can stream video files of size, let's say >50mb. Would this work or the files should be located to the proxy server too, due to the size of the files?
 
Old 06-21-2011, 09:43 AM   #4
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 972

Rep: Reputation: 117Reputation: 117
You're welcome!
Mmmhh, that's interesting - I'm not sure if the reverse proxy wants to first receive the whole file before forwarding it to its final destination, or if it forwards to the target immediately each packet that it gets from the source.

So, in the end, this means the following: I don't know.

But before that we start trying out things: if "no" caching is done by the reverse proxy in the UK, what would then be the difference compared to serving the files directly from the server in Cyprus? In the end the UK-server will always have to first get the file from Cyprus and forward it to the UK-user => this would mean that the server in Cyprus will in the end always get ALL the requests coming from planet Earth, and that ALL UK-requests will always have to be sent first to the UK-server before getting to the UK-user => this will make things a bit slower as compared to a direct UK-user=>Cyprus-server connection.

Variant 1: Cyprus => UK-server => UK-user
Variant 2: Cyprus => UK-user
If no caching is used, Variant 2 will be faster as it has less components.

What do you think?

Last edited by Pearlseattle; 06-21-2011 at 09:46 AM.
 
Old 06-22-2011, 12:27 AM   #5
cthugr
LQ Newbie
 
Registered: Jan 2011
Posts: 11

Original Poster
Rep: Reputation: 0
I see your point. So, if caching is used, what is the best way to proceed? Is there a way to split the Cyprus requests to be served from the Cyprus server and the UK requests from the UK server?
 
Old 06-22-2011, 01:25 AM   #6
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,216

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
just my 2 cents, for what it's worth, somewhere I read that apache wasn't as good a reverse proxy as squid, maybe you'll have better luck reading up on squid?
just a thought, i have used squid as a reverse proxy before with web servers, not sure how it would work with video streaming, but it wasn't that much of a hassle to configure.
 
Old 06-22-2011, 02:58 AM   #7
cthugr
LQ Newbie
 
Registered: Jan 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Thank you frieza, I will check out squid, also!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Apache as Reverse Proxy LR_Brian Linux - Server 4 02-17-2009 11:33 AM
Apache reverse proxy noir911 Linux - Server 0 02-05-2008 08:21 PM
reverse proxy with apache 2 bootiack Linux - Software 1 08-09-2005 06:47 PM
apache reverse proxy wildbob Linux - Networking 8 10-15-2003 12:16 PM
apache Reverse Proxy !!!!! ashish_v Linux - Software 0 09-05-2003 04:42 PM


All times are GMT -5. The time now is 12:37 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration