Hi,
I'm trying to install mediacore using mod_wsgi , and I'd like all access to videos to require a valid login.
For that reason, I'm using the following configuration:
WSGIDaemonProcess mcore \
threads=10 \
display-name=%{GROUP} \
python-path=/srv/data-nieuw/mediacore_env/lib/python2.5/site-packages \
python-eggs=/srv/data-nieuw/mediacore/data/python-egg-cache
WSGIProcessGroup mcore
# Intercept all requests to /mediacore/* and pass them to mediacore.wsgi
WSGIScriptAlias /mediacore /srv/data-nieuw/mediacore/deployment-scripts/mod_wsg
WSGIScriptAlias /mediacore_admin /srv/data-nieuw/mediacore/deployment-scripts/m
# Make the url accessible (just in case it's not already)
<Location "/mediacore">
Order allow,deny
Allow from all
</Location>
# Make the wsgi script accessible
<Directory /srv/data-nieuw/mediacore/deployment-scripts/mod_wsgi>
# AuthType Basic
# AuthUserFile /homes/htpasswd
# AuthBasicProvider file
# AuthName "Video Login"
#
# Require valid-user
Order allow,deny
Allow from all
</Directory>
# Create exceptions for all static content
AliasMatch /mediacore(/admin)?/(images|scripts|styles)(/?.*) /srv/data-nieuw/me
# Make all the static content accessible
<Directory /srv/data-nieuw/mediacore/mediacore/public/*>
Order allow,deny
Allow from all
</Directory>
If I use this configuration as is, everything works fine.
However, if I enable authentication for the wsgi thing, everything works fine - except for the admin part, which gives me a 401 error.
I don't know much about pylons, but I'd like to fix this as mediacore seems to be really nice!