D
D
daMage2015-01-17 13:27:12
linux
daMage, 2015-01-17 13:27:12

How to open www-data access to the user folder?

Good afternoon. I decided to move the /var/www folder to /home/user/Sites
In the access rights of "Sites" is "Access files" for all users, so why does Apache swear that access is denied?

Forbidden
You don't have permission to access / on this server.

<Directory /home/user/Sites>
  Options Indexes FollowSymLinks
  AllowOverride All
  Require all granted
</Directory>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
O Di, 2015-01-17
@daMage

chown -R www-data:www-data /home/user/Sites
or
not?

A
Armenian Radio, 2015-01-17
@gbg

Ваше решение неверное. Не следует переносить серверную папку /var/www в домашнюю папку.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question