Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Apache httpd replication / proxy mirror server?

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


nino.martinez.wael at gmail

Nov 25, 2009, 6:09 AM

Post #1 of 9 (837 views)
Permalink
Apache httpd replication / proxy mirror server?

Hi Guys

Is it possible somehow to use httpd for replicate files between servers ?

We have a use case where a user will place a file on one of the apache
servers and then it should get replicated towards the other servers..


regards Nino


tevans.uk at googlemail

Nov 25, 2009, 6:11 AM

Post #2 of 9 (829 views)
Permalink
Re: Apache httpd replication / proxy mirror server? [In reply to]

On Wed, Nov 25, 2009 at 2:09 PM, nino martinez wael <
nino.martinez.wael [at] gmail> wrote:

> Hi Guys
>
> Is it possible somehow to use httpd for replicate files between servers ?
>
> We have a use case where a user will place a file on one of the apache
> servers and then it should get replicated towards the other servers..
>
>
> regards Nino
>

No, but "man 1 rsync" should get you in the right direction.

Cheers

Tom


nino.martinez.wael at gmail

Nov 25, 2009, 6:19 AM

Post #3 of 9 (798 views)
Permalink
Re: Apache httpd replication / proxy mirror server? [In reply to]

hmm yeah I know, but it's on windows :/ Just wanted to know if we could stay
withing httpd for this one...

2009/11/25 Tom Evans <tevans.uk [at] googlemail>

> On Wed, Nov 25, 2009 at 2:09 PM, nino martinez wael <
> nino.martinez.wael [at] gmail> wrote:
>
>> Hi Guys
>>
>> Is it possible somehow to use httpd for replicate files between servers ?
>>
>> We have a use case where a user will place a file on one of the apache
>> servers and then it should get replicated towards the other servers..
>>
>>
>> regards Nino
>>
>
> No, but "man 1 rsync" should get you in the right direction.
>
> Cheers
>
> Tom
>


nick at webthing

Nov 25, 2009, 6:28 AM

Post #4 of 9 (797 views)
Permalink
Re: Apache httpd replication / proxy mirror server? [In reply to]

nino martinez wael wrote:
> hmm yeah I know, but it's on windows :/ Just wanted to know if we could
> stay withing httpd for this one...

It's not apache's business. But you could add a CMS that manages
replication. Or store the data in a replicating database.
Or variants on that theme.

Or of course you could write (or google for) a replication module.

--
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


nino.martinez.wael at gmail

Nov 25, 2009, 6:54 AM

Post #5 of 9 (796 views)
Permalink
Re: Apache httpd replication / proxy mirror server? [In reply to]

True it's not apaches business, but would be stupid if it was possible,
hence me asking. I did a search for replication module but could'nt find
anything, so I figured that I either searched with wrong words or it was not
possible. Asking this list was then my best shot.

Forgot to say thanks to Tom for the quick answer.. And thanks to you (Nick)
for the suggestions.

Regards Nino

2009/11/25 Nick Kew <nick [at] webthing>

> nino martinez wael wrote:
>
>> hmm yeah I know, but it's on windows :/ Just wanted to know if we could
>> stay withing httpd for this one...
>>
>
> It's not apache's business. But you could add a CMS that manages
> replication. Or store the data in a replicating database.
> Or variants on that theme.
>
> Or of course you could write (or google for) a replication module.
>
> --
> Nick Kew
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe [at] httpd
> " from the digest: users-digest-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd
>
>


aw at ice-sa

Nov 25, 2009, 7:16 AM

Post #6 of 9 (784 views)
Permalink
Re: Apache httpd replication / proxy mirror server? [In reply to]

nino martinez wael wrote:
> hmm yeah I know, but it's on windows :/ Just wanted to know if we could stay
> withing httpd for this one...
>
Well, exactly /how/ do the users put files on this server ?

You have not even explained if they put these files there using Apache
somehow.
There is nothing that I know of in Apache itself that will do that, but
it may be possible to add something. Describe your issue a bit more in
detail, and it may give ideas to someone.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


nino.martinez.wael at gmail

Nov 25, 2009, 8:50 AM

Post #7 of 9 (785 views)
Permalink
Re: Apache httpd replication / proxy mirror server? [In reply to]

It's a bit complicated. So I'll try to explain it in a simple way.

The user are calling(via phone) an IVR application which in turns interprets
vxml. The vxml page then has an option to record and save the recording.
When the vxml page saves the recording it saves towards tomcat which then
places the file in a repository which then are served by Apache httpd, we
have more apache http servers for failover and it's here the need for
replication comes.

All this we can code our way out of, but if there's something already that
does this it would be nice with some recycling. I was thinking that the
Apache http server that got the new file could push it to the others.


Regards Nino

2009/11/25 André Warnier <aw [at] ice-sa>

> nino martinez wael wrote:
>
>> hmm yeah I know, but it's on windows :/ Just wanted to know if we could
>> stay
>> withing httpd for this one...
>>
>> Well, exactly /how/ do the users put files on this server ?
>
> You have not even explained if they put these files there using Apache
> somehow.
> There is nothing that I know of in Apache itself that will do that, but it
> may be possible to add something. Describe your issue a bit more in detail,
> and it may give ideas to someone.
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe [at] httpd
> " from the digest: users-digest-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd
>
>


aw at ice-sa

Nov 25, 2009, 10:44 AM

Post #8 of 9 (781 views)
Permalink
Re: Apache httpd replication / proxy mirror server? [In reply to]

nino martinez wael wrote:
> It's a bit complicated. So I'll try to explain it in a simple way.
>
> The user are calling(via phone) an IVR application which in turns interprets
> vxml. The vxml page then has an option to record and save the recording.
> When the vxml page saves the recording it saves towards tomcat which then
> places the file in a repository which then are served by Apache httpd, we
> have more apache http servers for failover and it's here the need for
> replication comes.
>
> All this we can code our way out of, but if there's something already that
> does this it would be nice with some recycling. I was thinking that the
> Apache http server that got the new file could push it to the others.
>
Allright. I have no idea what IVR is and no wish to look up another
acronym, but I think I get the idea.
So, the answer is still no, there isn't a standard Apache module that
will do that kind of synchronisation. Specially since the way you
explain it, Apache itself has no idea that this file has been loaded in
the first place, nor where.
So it is either taking care of it at the level of your own code, or use
rsync as someone else suggested earlier (and which is probably the best
idea overall).
rsync also works under Windows, we use it.
And if you have trouble setting it up, nowadays setting up a Linux box
is really not difficult. You could set up one just to do that, which
would take care of synchronising between all your servers. It is very
efficient, as it will only copy whatever changes, even within files.

As for the ideas I was referring to earlier, it would have been
different if the files were uploaded via DAV for example, because then
Apache /would/ know.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


nino.martinez.wael at gmail

Nov 26, 2009, 4:05 AM

Post #9 of 9 (770 views)
Permalink
Re: Apache httpd replication / proxy mirror server? [In reply to]

Yeah that was some of my thoughts aswell. But even if we pushed towards dav
it wouldn't help us right?


Thanks for the note about rsync.

Regards Nino

2009/11/25 André Warnier <aw [at] ice-sa>

> nino martinez wael wrote:
>
>> It's a bit complicated. So I'll try to explain it in a simple way.
>>
>> The user are calling(via phone) an IVR application which in turns
>> interprets
>> vxml. The vxml page then has an option to record and save the recording.
>> When the vxml page saves the recording it saves towards tomcat which then
>> places the file in a repository which then are served by Apache httpd, we
>> have more apache http servers for failover and it's here the need for
>> replication comes.
>>
>> All this we can code our way out of, but if there's something already that
>> does this it would be nice with some recycling. I was thinking that the
>> Apache http server that got the new file could push it to the others.
>>
>> Allright. I have no idea what IVR is and no wish to look up another
> acronym, but I think I get the idea.
> So, the answer is still no, there isn't a standard Apache module that will
> do that kind of synchronisation. Specially since the way you explain it,
> Apache itself has no idea that this file has been loaded in the first place,
> nor where.
> So it is either taking care of it at the level of your own code, or use
> rsync as someone else suggested earlier (and which is probably the best idea
> overall).
> rsync also works under Windows, we use it.
> And if you have trouble setting it up, nowadays setting up a Linux box is
> really not difficult. You could set up one just to do that, which would
> take care of synchronising between all your servers. It is very efficient,
> as it will only copy whatever changes, even within files.
>
> As for the ideas I was referring to earlier, it would have been different
> if the files were uploaded via DAV for example, because then Apache /would/
> know.
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe [at] httpd
> " from the digest: users-digest-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd
>
>

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.