logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Forbidden 403s when accessing files/pages on mounted device
Author
leeyacobi



Joined: 04 Apr 2006
Posts: 9

PostPosted: Tue 18 Nov '14 23:58    Post subject: Forbidden 403s when accessing files/pages on mounted device Reply with quote

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,

Mr. Green
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 19 Nov '14 15:03    Post subject: Reply with quote

Do you have a directory setting for /var/www/html/media ?
Back to top
leeyacobi



Joined: 04 Apr 2006
Posts: 9

PostPosted: Fri 21 Nov '14 2:13    Post subject: Reply with quote

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

PostPosted: Fri 21 Nov '14 18:24    Post subject: Reply with quote

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

PostPosted: Tue 25 Nov '14 3:03    Post subject: Reply with quote

I'm getting the same error Sad
Back to top
leeyacobi



Joined: 04 Apr 2006
Posts: 9

PostPosted: Tue 25 Nov '14 3:30    Post subject: Reply with quote

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

PostPosted: Mon 08 Dec '14 18:26    Post subject: Reply with quote

Sorry, this mainly a windows forum. So you might ask in a linux forum how to do that.
Back to top


Reply to topic   Topic: Forbidden 403s when accessing files/pages on mounted device View previous topic :: View next topic
Post new topic   Forum Index -> Apache