Re: Apache 2.4 can not access server sub-directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Are you perhaps using httpd on Linux and if so is it a Linux version with selinux?

If that's your scenario, take a look at this, with selinux the file permissions are only half the story, you have to categorize data in other directories by setting the type.  I just had to do this, was a bit of a learning curve.

This was helpful for me:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/selinux_users_and_administrators_guide/sect-managing_confined_services-the_apache_http_server-configuration_examples

Obviously if you're not on something with selinux then this wouldn't apply.  :)


On Thu, Oct 29, 2020 at 4:11 PM syscon edm <syscon780@xxxxxxxxx> wrote:
After installing apache 2.4 I can not access server subdirectory:
server/admin/index.html

Forbiden
You don't have permission to access /admin/index.html on this server

I can access index.html in a directory below /admin (server/index.html)
but not the server/admin/index.html

I even change the permission on the index file:
-rwxrwxrwx  1 apache apache   428 Oct 28 16:44 index.html

I removed .htaccess from server/admin (it doesn't help)

In apache.conf

<Directory />
        Options FollowSymLinks
        AllowOverride None
        Require all denied
</Directory>

<Directory /usr/share>
        AllowOverride None
        Require all granted
</Directory>

<Directory /var/www/>
        Options FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux