[ckan-dev] CKAN root path repeated in URL

Annette Greiner amgreiner at lbl.gov
Wed Sep 5 18:11:31 UTC 2018


I ran into this problem as well. I ended up using mod_rewrite to rewrite 
any url with /data/data to /data. Would love to see a cleaner fix for it.

-Annette


On 9/5/18 3:11 AM, vikesh rambaran wrote:
> Hi
>
> We have a CKAN site that should be accessed via 
> http://192.168.183.128/data
> However, when viewing some of the CKAN pages in a browser, the url 
> root is repeated.
> Therefore the site cannot be reached.
>
> The expected URL should be http://192.168.183.128/data/<ckan_page>
> but the browser tries to access 
> http://192.168.183.128/data/data/<ckan_page>
>
> Examples are the login, logout and admin pages
> http://192.168.183.128/data/data/user/login
> http://192.168.183.128/data/data/user/logged_out_redirect
> http://192.168.183.128/data/data/user/ckan_admin
>
> Once logged in, the URLs are correct for dataset, organization, group 
> etc pages.
>
> The CKAN 2.8 configuration is:
>
> production.ini:
> ckan.site_url http://192.168.183.128
> ckan.root_path = /data/{{LANG}}
>
> ckan_default.conf:
> WSGIScriptAlias /data /etc/ckan/default/apache.wsgi
>
> datapusher.conf:
> WSGIScriptAlias /data /etc/ckan/datapusher.wsgi
>
>
> How should CKAN be configured to resolve this issue ?
> Any help would be appreciated.
>
> Thanx
> Vicki
>
>
> _______________________________________________
> 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

-- 
Annette Greiner
NERSC Data and Analytics Services
Lawrence Berkeley National Laboratory

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20180905/e596af56/attachment-0002.html>


More information about the ckan-dev mailing list