Ask a Question
Asked By: ring0Category: ConfigurationTags: apache, document root, followsymlink, options
I cannot get Apache to serve documents outside of document root. SeLinux status is set to disabled. The relevent sections of the httpd.conf file are as follows:
User daemon
Group daemon
DocumentRoot “/usr/local/apache2/htdocs”
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
The permissions on the symlink are as follows:
lrwxrwxrwx. 1 root root 23 Nov 16 15:53 link -> /root/links/index2.html
The permissions on the target are as follows:
-rwxrwxrwx. 1 root root 56 Nov 16 14:06 index2.html
When browsing to [
192.168.218.128...] I get an HTTP 403 Forbidden error
Server version: Apache/2.2.21
OS Linux RHEL01 2.6.32-131.6.1.el6.i686