[ckan-dev] ckan AuthUserFile Problem
Corey Erickson
corey at coasta.ca
Thu Feb 18 19:48:31 UTC 2016
Lorenzo,
I also run Ckan with Apache on Centos/RHEL 7 without issue.
Make sure you don't have the debug mode in your Ckan ini file set to true. You cannot run Ckan in debug mode with Apache, only paster.
Regards,
Corey
> On Feb 4, 2016, at 7:47 AM, Lorenzo Cipriani <cipriani.lore at gmail.com> wrote:
>
> Hi guys,
>
> I have ckan on centos 7 and apache, i'd like to have a password to enter in my site with AuthUserFile...
>
> This is the configuration of my virtualhost but when i digit the password i can enter in my site (example http://mydomain.com ) but don't see any resource (error 500), Can you help me ?
>
> If I Use the link with port 5000 http://mydomain.com:5000 all ok!
>
> Thanks
>
> WSGISocketPrefix /var/run/wsgi
> <VirtualHost 0.0.0.0:8080>
> ServerName mydomain.com
> ServerAlias www.mydomain.com
>
> <Location />
> AuthType Basic
> AuthName "Autorizzazione"
> AuthUserFile "/etc/ckan/default/.htpasswd"
> Require valid-user
> </Location>
>
> WSGIScriptAlias / /etc/ckan/default/apache.wsgi
> # pass authorization info on (needed for rest api)
> WSGIPassAuthorization On
> # Deploy as a daemon (avoids conflicts between CKAN instances)
> WSGIDaemonProcess ckan_default display-name=ckan_default processes=2 threads=15
> WSGIProcessGroup ckan_default
>
> ErrorLog /var/log/apache2/ckan_default.error.log
> CustomLog /var/log/apache2/ckan_default.custom.log combined
>
> </VirtualHost>
>
>
>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160218/39b8cc74/attachment-0003.html>
More information about the ckan-dev
mailing list