F
F
fman22021-01-18 20:19:41
linux
fman2, 2021-01-18 20:19:41

How to isolate multiple sites without Docker?

Hello.
Can you please tell me the best way to differentiate access to several sites with bare Ubuntu 16.04 and without using containerization tools? In general, is it possible?

It is necessary that the site /var/www/site1 can read and execute only its own directory and not have read and write permissions, for example, in /var/www/site2.

The server uses nginx + php7.4

Answer the question

In order to leave comments, you need to log in

4 answer(s)
K
ky0, 2021-01-18
@ky0

Spread across directories with different owners and set up different users for PHP pools. You pretty much described everything yourself :)

A
Alexey Dmitriev, 2021-01-18
@SignFinder

Run one nginx as reverse proxy and each site in a separate chroot
https://www.vennedey.net/resources/3-Secure-webspa...

S
Sanes, 2021-01-18
@Sanes

Each PHP Pool run as a separate user. Docker has nothing to do there.

A
AVKor, 2021-01-18
@AVKor

It is necessary?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question