L
L
Leonid Fedotov2015-01-18 20:28:53
PHP
Leonid Fedotov, 2015-01-18 20:28:53

PHP server as a relay?

Task : Transfer the client file through server A to server B preferably as quickly as possible.
Restrictions : The client file is transferred via POST and PUT methods.
It is clear that, as an option, we upload the file to server A, and then this server sends the file to server B. But here we lose in speed, and server resources are wasted. I would like a solution that is similar in efficiency to directly sending a file to a client with the readfile function ( habrahabr.ru/post/151795).
UPD: It is not possible to install custom modules on the server

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2015-01-18
@xmoonlight

mod_proxy connect: folder to the IP of server B.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question