S
S
Sergey Petrov2016-03-23 15:57:20
PHP
Sergey Petrov, 2016-03-23 15:57:20

Differentiation of rights on the server within the same domain?

There is a site with the domain http://example.com, you need to add a blog to it with the address example.com/blog . How can you differentiate rights on the server so that when a blog is hacked (uploaded), an attacker cannot access the files of the main site?
How to configure Nginx so that work with the /blog subdirectory (in particular, php launch) is carried out as a different user (not the one under which the main site is running)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2016-03-23
@sergoslav_0

two php-fpm from two users, and in nginx distribute everything according to their location

D
DarkMatter, 2016-03-23
@darkmatter

You need to create a new FTP user and set /blog in the start directory, then he will not be able to get to the main site.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question