Click here to Skip to main content
15,912,069 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have a 2 web server(serverA and ServerB), both active-active web server and wanted to configure server in such a way that if user uploads a file in serverA, it should auto upload a file in serverB and if user uploads in serverB, it should also be auto uploaded in serverA.

Any help regarding how to achieve above would be highly appreciated.

What I have tried:

Have tried file-system making it share and mount to serverB, but don't want to make a shared file system.
Posted
Updated 24-Nov-16 9:57am
Comments
[no name] 24-Nov-16 12:06pm    
You go to http://www.bing.com/search?q=How+to+configure+cluster+apache+web-server+in+linux and start reading. If you can't find the answer in there, then you should ask in an appropriate forum in an appropriate web site. This has nothing to do with software development and is off topic.

1 solution

Apache is a web server. It has nothing to do with data-clusters... I would advise not even try to write such code the physically shares the files over servers...
I would do the follow (assuming that server A and B have different role):
1. Set up a new server to server as file storage and upload files from both A and B to there...
2. Create a DB and list all files uploaded as appropriate, so both A and B would access files regardless which uploaded it...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900