I
I
Ilya Beloborodov2016-07-19 16:40:14
Nginx
Ilya Beloborodov, 2016-07-19 16:40:14

How to properly set the path in nginx?

On the server there is such a path to the script /var/www/example/sites/example.com/parser
There is this in nginx.conf

location /parser/ {
    root /var/www/example/sites/example.com;
}

When trying to access example.com/parser/ it  returns 403 Forbidden
What else needs to be added here to make it work fine?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2016-07-19
@kowap

see error_log there it will be written why 403, maybe there are no rights.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question