Re: Error 403 on Apache server, You don't have permission to access / on this server.

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

 



On Sun, Jan 29, 2012 at 1:24 AM, Alan Holt <berber.it@xxxxxxxxx> 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.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux