Re: Apache not liking directories outside of /var/www

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



sounds like current default apache security
 
near the begining you of httpd.conf you will find 
 
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

 
This effectively blocks you from sharing any directory (even aliased ones) unless the actual directory (no symlinks or aliases) is under /var/www. 
 
to add in exceptions put this under your alias statement.
 

Alias /test /home/test
<Directory /home/test>
        Order allow,deny
        Allow from all
</Directory>
 
 

________________________________

From: centos-bounces@xxxxxxxxxx on behalf of Boris Epstein
Sent: Fri 7/31/2009 9:17 AM
To: centos@xxxxxxxxxx
Subject:  Apache not liking directories outside of /var/www



Hi all,

It appears that on my nice little CentOS 5.3 machines Apache only
allows me to store content in directories which are under /var/www/

For instance, putting content in /var/www/test and defining the following alias:

Alias /test /var/www/test

then accessing it under http://hostname/test works great.

Not copy that same content to /home/test, change the alias to:

Alias /test /home/test

and you get Error 403.

Any idea why that would be?

Never had this sort of trouble anywhere, including under CentOS 5.0 and 5.1

Thanks in advance for any and all help.

Boris.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


<<winmail.dat>>

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux