Author |
|
leeyacobi
Joined: 04 Apr 2006 Posts: 9
|
Posted: Tue 18 Nov '14 23:58 Post subject: Forbidden 403s when accessing files/pages on mounted device |
|
|
Hey,
So i have a script running on my apache that catalogs pictures and clips. All the actual video files are located on a separate drive which is mounted in to a folder in my site. I've set apache as the owner and have the correct permissions on the mounted folder but I'm getting Forbidden errors accessing files even when on html file in the mounted folder.
I know it's a permissions issue at the disk or mounting level but I can't find anything online that may help me.
The way I mount is by using this command:
mount -t ext4 /dev/sdc /var/www/html/media
Thanks,
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 19 Nov '14 15:03 Post subject: |
|
|
Do you have a directory setting for /var/www/html/media ? |
|
Back to top |
|
leeyacobi
Joined: 04 Apr 2006 Posts: 9
|
Posted: Fri 21 Nov '14 2:13 Post subject: |
|
|
Hi James,
Thank you for the reply.
I only have directory settings for /var/www/html/ which have the following:
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory> |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 21 Nov '14 18:24 Post subject: |
|
|
Duplicate that directory block and edit the path to the media folder since it is a different mount. I wonder why it does not inherit it but that is what I would try. |
|
Back to top |
|
leeyacobi
Joined: 04 Apr 2006 Posts: 9
|
Posted: Tue 25 Nov '14 3:03 Post subject: |
|
|
I'm getting the same error |
|
Back to top |
|
leeyacobi
Joined: 04 Apr 2006 Posts: 9
|
Posted: Tue 25 Nov '14 3:30 Post subject: |
|
|
I finally got it working by putting SELinux into permissive mode. This a temporary fix. Does anyone know how to set selinux to allow apache access to a mounted drive?
Thank you |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 08 Dec '14 18:26 Post subject: |
|
|
Sorry, this mainly a windows forum. So you might ask in a linux forum how to do that. |
|
Back to top |
|