Apache 'Symbolic link not allowed' error on Fedora 25
Hello,
I got stuck on 'Symbolic link not allowed or link target not accessible' error and after a whole morning trying to fix it, still nothing. So, here I am.
So, server is running (Fedora Test Page opens with localhost on browser). And this is my ll for /var/www/html:
[root@unknown74e543af57bc html]# ll
total 4
-rw-r--r--. 1 root root 20 jun 13 11:49 test.php
lrwxrwxrwx. 1 root root 19 jun 13 11:40 web -> /home/fernando/html
As well, when I navigate to localhost/test.php the file is executed and I get my Hello World test.
However, when I try to access localhost/web, it leads me 403 error page. And this is my ll for /home/fernando/html:
[root@unknown74e543af57bc html]# ll /home/fernando/html
total 12
-rwxr-xr-x. 1 fernando www-data 2 jun 13 11:13 index.html
drwxr-xr-x. 11 fernando fernando 4096 jun 13 11:34 testsite.com
-rwxr-xr-x. 1 fernando www-data 31 jun 13 11:10 test.php
And, inside /etc/httpd/conf/httpd.conf:
<Directory />
AllowOverride none
Require all denied
</Directory>
DocumentRoot "/var/www/html"
<Directory "/var/www">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
And in /var/log/httpd/error_log:
[Tue Jun 13 13:08:50.222612 2017] [core:error] [pid 8860] [client ::1:57328] AH00037: Symbolic link not allowed or link target not accessible: /var/www/html/web
Any ideas? Thanks, Fernando