T
T
Tyoma Makeev2015-12-14 07:40:23
PHP
Tyoma Makeev, 2015-12-14 07:40:23

Nginx as frontend for PHP-FPM backend on another server. Where to keep static?

Suppose I have two servers / virtual machines
On one nginx, on the other - php-fpm and mysql
Suppose I proxy requests to php through nginx to the second server
What to do with requests to statics? Also proxy and hold on the backend? Or synchronize (how?) two folders on the backend and frontend, and only proxy requests to php, and give the static from your machine? Or set up caching (how?) on your disk of static received from the backed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osher, 2015-12-14
@miraage

Amazon s3 seems to be inexpensive.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question