LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-31-2007, 01:49 PM   #1
mehdiali
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Rep: Reputation: 0
two servers for one upload center


Hi every one
there is a upload center that it's files are divided between two servers.
one of the servers is located in Washington and other one is located
in New York.
so some files will be downloaded from Washington server and other files will be downloaded from New York server.
and i don't know name of the files.
and i want to use one domain for both of them.
for example :
mehdiali/files/a.exe (it is downloaded from Washington server)
mehdiali/files/b.exe (it is downloaded from New York server)

thank you in advance.
 
Old 12-31-2007, 07:51 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
What is your exact question? Are you wanting to know how to set something like this up? This seems more like a programming issue. What type of front end? What language is used? Your gonna need to spill out a lot more information than the generic question you've asked.
 
Old 01-01-2008, 05:46 AM   #3
mehdiali
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Original Poster
Rep: Reputation: 0
thank you for your replies,
the solution :
the user type mehdiali/files/b.exe(requested_url) that isn't available in server A.
so i must redirect it to server B.
i write a command like this in htaccess file :

ErrorDocument 404 "http://localhost/divider.php?r_u=requested_url"

so in divider.php page i have $HTTP_GET_VARS['r_u']
and after fetching the b.exe(file name)
i'll redirect it to server B, like this :
header("location:mehdiali2/filename/b.exe");

but my problem is how i can find requested_url.
what do you write instead of requested_url in
ErrorDocument 404 "http://localhost/divider.php?r_u=requested_url"
is there any variable?

i don't know the name of the files.
please send the complete code.
 
  


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
LXer: Linux Media Center Better Then Windows Media Center? LXer Syndicated Linux News 0 08-26-2007 09:50 PM
help with upload center icecube76 Linux - Server 3 03-12-2007 09:49 AM
Proftpd upload to a folder other than 'upload' fooboo Linux - Software 4 04-27-2006 07:51 PM
IglooFTP-PRO refuses to upload files in folder when I upload folder eBopBob Linux - Software 0 08-27-2004 05:52 AM
Can't find the "servers" option in the control center in Mandrake 10.0 Ggrot Mandriva 2 05-28-2004 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:50 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