On Sun, Jan 29, 2012 at 1:24 AM, Alan Holt <berber.it(a)gmail.com> wrote:
Hello to all,
I've web-server Apache:
[root@services share]# httpd -v
Server version: Apache/2.2.17 (Unix)
on Fedora Linux:
[root@services share]# cat /etc/issue
Fedora release 14 (Laughlin)
And I have domain
example.domain.com where I want to see file listing in the
current directory, but when I go in the browser to
example.domain.com I get
the next error:
Forbidden
You don't have permission to access / on this server.
So I don't know what is the problem =(
My httpd.conf:
<Directory />
Order allow,deny
Allow from All
AllowOverride All
IndexOptions +FancyIndexing
Options +Indexes Includes MultiViews FollowSymLinks AuthConfig FileInfo
</Directory>
My .htaccess file:
[root@services QaTests]# cat .htaccess
Options +Indexes
My directory:
drwxrwsrwt 5 root apache 4096 Jan 26 17:15 QaTests
What could be a problem I don't have any idea?
Could somebody to help me please ?
Most likely SELinux is blocking it. You need to relabel that
directory so httpd can read it.
semanage fcontext -a -t httpd_sys_content_t /path/to/QaTests
restorecon -v QaTests
Note that an absolute path is required in the first command.
-T.C.