Symbolic link not allowed
Hi all,
I 've made a Centos4 web server and configured a site under apache.
Now I've a windows 2000 server in my lan in which I have a directory containing images that must be visualized under my site. So I've mounted with samba my win2000 dir in /mnt/winimages and I can navigate it and see everythings.
After that I come under apache and in /var/www/html/mysite I've created a symbolic link named myimages that point to /mnt/winimages: all goes ok and ls -l myimages give me the list of my images...
I've also insert this line in my /etc/httpd/conf/httpd.conf
<Directory "/var/www/html/mysite/myimages">
Options Indexes Includes FollowSymLinks
AllowOverride None
Allow from all
Order allow,deny
</Directory>
and restart apache. When I put a direct url on my browser pointing to a pippo.jpg I receive this error on browser:
Forbidden
You don't have permission to access /mysite/myimages/pippo.jpg on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request
I also get this making tail -f /etc/httpd/logs/error_log
Symbolic link not allowed: /var/www/html/mysite/myimages
I also do this:
vi /etc/selinux/config
and change to
SELINUX=permissive
and restart the server...
Anyone have an idea???
Thanks all,
Regards,
Gambrinus
|