Hello,
I'm trying to make a virtualhost for 1 user. I had it before and worked great. It's weir for me becouse i reinstalled server and still getting error related with permissions.
My vhost:
I added dns record to named. Domain works without any problem. When i want to go to the main site proton.edu.pl im getting:
From /var/log/httpd-error.lo
Before i was trying change root directory in httpd.conf, ServerRoot and many other ways. Nothing helped. I reinstalled apache24 and is clear. Only vhost has been added.
Permissions on folders are 755. Userdirs works without any problems.
I have nothing changed in httpd.conf
What am i doing wrong ?
Thanks,
I'm trying to make a virtualhost for 1 user. I had it before and worked great. It's weir for me becouse i reinstalled server and still getting error related with permissions.
My vhost:
Code:
[root@proton /usr/local/etc/apache24/Includes]# service apache24 restart
Performing sanity check on apache24 configuration:
Syntax OK
apache24 not running? (check /var/run/httpd.pid).
Performing sanity check on apache24 configuration:
Syntax OK
Starting apache24.
[root@proton /usr/local/etc/apache24/Includes]# cat bryn1u.conf
<VirtualHost *:80>
ServerAdmin bryn1u@proton.edu.pl
ServerName bryn1u.proton.edu.pl
ServerAlias www.bryn1u.proton.edu.pl
DocumentRoot "/home/bryn1u/domains/bryn1u.proton.edu.pl"
<Directory /home/bryn1u/domains/bryn1u.proton.edu.pl>
AllowOverride None
Order Allow,Deny
Allow from all
</Directory>
# ErrorLog "/home/bryn1u/domains/bryn1u.proton.edu.pl"
# CustomLog "/home/bryn1u/domains/bryn1u.proton.edu.pl" common
</VirtualHost>
[root@proton /usr/local/etc/apache24/Includes]#
Forbidden
You don't have permission to access / on this server.
From /var/log/httpd-error.lo
Code:
[Sat Oct 14 12:34:57.208121 2017] [authz_core:error] [pid 15205] [client 46.76.150.165:42194] AH01630: client denied by server configuration: /home/bryn1u/domains/bryn1u.proton.edu.pl/
[Sat Oct 14 12:34:57.508121 2017] [authz_core:error] [pid 15205] [client 46.76.150.165:42194] AH01630: client denied by server configuration: /home/bryn1u/domains/bryn1u.proton.edu.pl/favicon.ico
[Sat Oct 14 12:34:57.588106 2017] [authz_core:error] [pid 15205] [client 46.76.150.165:42194] AH01630: client denied by server configuration: /home/bryn1u/domains/bryn1u.proton.edu.pl/favicon.ico
[Sat Oct 14 12:39:06.647983 2017] [authz_core:error] [pid 88407] [client 46.76.150.165:42254] AH01630: client denied by server configuration: /home/bryn1u/domains/bryn1u.proton.edu.pl/
Before i was trying change root directory in httpd.conf, ServerRoot and many other ways. Nothing helped. I reinstalled apache24 and is clear. Only vhost has been added.
Permissions on folders are 755. Userdirs works without any problems.
I have nothing changed in httpd.conf
What am i doing wrong ?
Thanks,