D
D
devalone2016-08-17 00:21:33
linux
devalone, 2016-08-17 00:21:33

Does it make sense to install nginx+apache inside openvz?

I have a server on vds (2 cores, 1GB RAM, 30GB disk), I want to put a web server on it for a blogger on wp. But since other important services will hang there, I decided to put apache in a safe container, so that in case of a hole in wp, its plugins or anywhere else, the impact on the server would be minimal, and also to limit the devouring of the resources of the server itself. I chose OpenVZ as a container, because it is considered fast enough. Nginx in this bundle will be located on the main server and have the role of a proxy, redirecting traffic to apach inside the virtual machine, it may still give static.
How deliberate is this decision and what can be changed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nikolayvaganov, 2016-08-17
@nikolayvaganov

Option 1 - nginx + apache2 + FastCGI (each site under a separate user)
Option 2 - nginx + php-fpm (each site under a separate user)
In terms of security, it's redundant to install OpenVZ, kmk.

M
misc1, 2016-08-17
@misc1

As you have already been told, you can keep each site under a separate user. If you still need virtualization, try Docker - in this case, I think it is the best fit. It supports limits.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question