OK so here's the gen, all up front. If it later turns out I missed something vital, I did try.
Server : Centos 7
Alias : webail /usr/share/squirrelmail
Apache root : /var/www/html
Apache user : apache:apache
ls - l of /usr/share/squirrelmail
ls -l of /usr/share/squirrelmail/index.php
error_log has
The alias in the httpd.conf looks like
And good old squirrel mail creates this virtual host
I am absolutely stumped.
If I su to apache and cat the index.php I can read the contents.
I have created a test html page in the same path and again I get a 403.
Spend the morning trawling google and various forums. I believe I have checked everything. Clearly I haven't and I'm an idiot but can someone please point out what I may have missed?
SELINUX is set to permissive.
Also a /var/www/html/test.php works fine. The folder permissions for both paths are exactly identical.
Server : Centos 7
Alias : webail /usr/share/squirrelmail
Apache root : /var/www/html
Apache user : apache:apache
ls - l of /usr/share/squirrelmail
Code:
drwxrwxr-x. 12 root root 4096 Aug 13 13:01 squirrelmail
Code:
drwxrwxr-x. 12 root root 4096 Aug 13 13:01 squirrelmail
[Wed Aug 13 13:10:13.246273 2014] [authz_core:error] [pid 16276] [client ::1:33929] AH01630: client denied by server configuration: /usr/share/squirrelmail/
Alias /squirrelmail /usr/share/squirrelmail
<Directory /usr/share/squirrelmail>
Options Indexes FollowSymLinks
RewriteEngine On
AllowOverride All
DirectoryIndex index.php
Order allow,deny
Allow from all
</Directory>
<Directory /usr/share/squirrelmail>
Options Indexes FollowSymLinks
RewriteEngine On
AllowOverride All
DirectoryIndex index.php
Order allow,deny
Allow from all
</Directory>
Alias /webmail /usr/share/squirrelmail
<Directory /usr/share/squirrelmail>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</Directory>
<Directory /usr/share/squirrelmail>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</Directory>
If I su to apache and cat the index.php I can read the contents.
I have created a test html page in the same path and again I get a 403.
Spend the morning trawling google and various forums. I believe I have checked everything. Clearly I haven't and I'm an idiot but can someone please point out what I may have missed?
SELINUX is set to permissive.
Also a /var/www/html/test.php works fine. The folder permissions for both paths are exactly identical.
Comment