| Author |
403 error when symlink over to another disk
|
|
|
| I've looked everywhere for a solution to this.
I'm trying to move most of my web site to another disk than / (they're
now in /var/www/html/)
I keep getting forbidden 403 pages when i try to access them.
permissoins appear to be correct:
># ls -Z /mnt/sandy1
drwx------ root root
lost+found
drwxr-xr-x root root system_u:object_r:httpd_sys_content_t
pub_html
drwxr-xr-x root root root:object_r:file_t users
(I want pub_html to be accessed)
I've tried both "ln -s" from DocumentRoot and Alias from the
httpd.conf. I assume that i'm being redirected, but have something
wrong with the permissions in pub_html.
I've also added the following to httpd.conf
<Directory "/mnt/sandy1/pub_html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
I notice that there is no selinux permissions for the actual mount
point /mnt/sandy1 ... Perhaps I need to specify selinux permissions for
the hard disk somehow?
Thanks,
Sandy
| |
| Grant Coady 2005-08-19, 2:53 am |
| On 18 Aug 2005 20:57:03 -0700, "Sandy" <xandey@gmail.com> wrote:
>I've looked everywhere for a solution to this.
>
>I'm trying to move most of my web site to another disk than / (they're
>now in /var/www/html/)
>
>I keep getting forbidden 403 pages when i try to access them.
Fix permissions. Unix don't care what disks the partitions are on :-p
Grant.
| |
|
| I think the permissions are correct Grant, could you tell me what i'm
doing wrong
drwxr-xr-x root root system_u:object_r:httpd_sys_content_t
pub_html
| |
|
| After reading some more about permissoins. I've also checked that all
files in the path have x permissions. And that the directory has 755
permissions and any files in it have 644.
I've also tried moving the target to being owned by a user. But nothing
had any effect.
the log contains the following error message:
[Fri Aug 19 11:45:48 2005] [error] [client 151.197.41.124]
(13)Permission denied: access to /sandy1/ denied
| |
|
| I'm using FC4, and want this to work with SElinux. I've set the
permissions to what i believe to be the correct ones
system_u:object_r:httpd_sys_content_t
What about the path upto the target of my symlink? I notice that the
mount point doesn't have any SElinux permissions at all, it shows as
blank in ls -lZ
Thanks,
Sandy
| |
|
|
|
|