C
C
chrispsow2018-12-03 09:06:21
Nginx
chrispsow, 2018-12-03 09:06:21

How to add access to www-data files?

I installed everything according to the manual
https://www.digitalocean.com/community/tutorials/h...
I'm doing all the actions as root, I don't know how it can be done differently (I just started getting acquainted with unix systems)
I uploaded the site to a folder /var/www/site.com/html/app An
index file located at the root of the site is available.
But I need to go to site.com/app i.e. I need access to /var/www/site.com/html/app
Support wrote that I need to add www-data access
How to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SofroN, 2018-12-03
@chrispsow

change folder owner and group

chown -R www-data:www-data /var/www/site.com/html/app

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question