> On 11 Sep 2018, at 10:49 pm, Graham Dumpleton <[email protected]> 
> wrote:
> 
> 
> 
>> On 11 Sep 2018, at 10:38 pm, David Lewis <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> I am using centos 7 with apache.
>> 
>> I am getting a 403 forbidden when navigating to: http://localhost/my_media 
>> <http://localhost/my_media>
>> 
>> My apache error_log shows:
>> [Tue Sep 11 08:36:27.196833 2018] [authz_core:error] [pid 8355] [client 
>> ::1:60250] AH01630: client denied by server configuration: 
>> /usr/local/mediadrop/mediadrop/public/mediadrop.wsgi
>> 
>> My httpd.conf entries are:
>> 
>> [CODE]
>> # Intercept all requests to /my_media/* and pass them to mediadrop.wsgi
>> WSGIScriptAlias /my_media 
>> /usr/local/mediadrop/mediadrop/public/mediadrop.wsgi
>> 
>> # Create an exception for media and podcast image from your data directory
>> AliasMatch ^/my_media/images/(media|podcasts)(.*) 
>> /usr/local/mediadrop/production/data/images/$1$2
>> 
>> # Create an exception for all static MediaDrop content
>> AliasMatch ^/my_media/(admin/)?(images|scripts|styles)(.*) 
>> /usr/local/mediadrop/mediadrop/public/$1$2$3
>> 
>> # Create an exception for your custom appearance css and images
>> Alias /my_media/appearance /usr/local/mediadrop/production/data/appearance
>> 
>> # Make all the static content accessible
>> <Directory /usr/local/mediadrop/mediadrop/public/*>
> 
> Not sure a wildcard at end of is correct there.
> 
>>     Order allow,deny
>>     Allow from all
> 
> For Apache 2.4 this has changed.
> 
>>     Options -Indexes
>> </Directory>
> 
> So try with:
> 
>     <Directory /usr/local/mediadrop/mediadrop/public>
>         <Files mediadrop.wsgi>
>             Require all granted
>         </Files>
>     </Directory>
> 
> Also, since you are accessing using 'localhost', this would all need to be in 
> the default (first) VirtualHost. You can't create a second VirtualHost to 
> hold it, as localhost wouldn't use it.

If not any VirtualHost at all, that is fine also.

>> [/CODE]
>> 
>> I have set file permissions of mediadrop.wsgi to 777 and owned by 
>> apache:apache for testing. Any ideas?
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "modwsgi" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] 
>> <mailto:[email protected]>.
>> To post to this group, send email to [email protected] 
>> <mailto:[email protected]>.
>> Visit this group at https://groups.google.com/group/modwsgi 
>> <https://groups.google.com/group/modwsgi>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to