N
N
Neoliz2016-07-04 13:46:07
linux
Neoliz, 2016-07-04 13:46:07

How to make django on nginx and the rest on apache?

The essence of the question is simple. Not strong on linux.
As everyone says, I installed nginx on it in a virtual environment and launched a django project through uwsgi.
And now, when accessing the server, nginx intercepts everything. And I have several domains directed to the server. How to make nginx work on one domain and apache work on another?
So that it would be possible to run php code on it. (Otherwise, nginx with php is very bad)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Ukolov, 2016-07-04
@timofeydeys

otherwise nginx with php is very bad
Since when?
In short: there is no way to do it, nginx took the 80th port. The only solution is to run apache on a different port and proxy requests there through nginx.

N
nikolayvaganov, 2016-07-04
@nikolayvaganov

Put nginx as frontend, put php-fpm under php projects, put uwsgi daemon under django. Further, for each desired project, drive through the sockets to the backends.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question