S
S
shevalex782017-01-05 02:34:07
Nginx
shevalex78, 2017-01-05 02:34:07

How to make nginx control what Apache gives?

Good evening.
We have a bunch of nginx (frontend) + apache2 (backend)
nginx listens on port 80 for the site site.ru and returns static. apache2 in turn accepts localhost:123 requests.
So. sometimes when there is some dynamics (which is processed by Apache), we get an address like site.ru:123 and naturally an error that it cannot display the page (because Apache only works for localhost). how to fix it? where to read about fine tuning?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wexter, 2017-01-05
@Wexter

The nginx + php-fpm bundle has been working quite stable and fast for a long time, so you can throw Apache out of this bundle and solve a bunch of problems

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question