H
H
HenLeiko2021-09-05 00:27:52
linux
HenLeiko, 2021-09-05 00:27:52

Do you get a 403 error when you try to open a local site?

Hello, I recently decided to switch to Linux and chose the manjaro distribution for myself.
During work, a problem related to hosts appeared, namely error 403.
If you place the project in / srv / http /, then everything works, but I wanted to move the project to a more convenient and accessible place, to / home /
And then the problems started, double-checked hosts, httpd-vhost, but did not notice any errors.
Can you tell the young lamer what is wrong?

httpd-vhosts


ServerAdmin [email protected]
DocumentRoot "/home/henleiko/srv/contentcreator.loc/"
ServerName contentcreator.loc
ErrorLog "/var/log/httpd/contentcreator.loc-error_log"
CustomLog "/var/log/httpd/contentcreator-access_log" common


spoiler
127.0.0.1 localhost
127.0.0.1 contentcreator.loc
127.0.1.1 henleiko-pc
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Barsukov, 2021-09-06
@HenLeiko

The web server does not have access to the project folder, you need to add rights by adding a user to a group,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question