[ckan-dev] CKAN root path repeated in URL

Ian Ward ian at excess.org
Wed Sep 5 18:32:32 UTC 2018


The users pages in 2.8 are served by new flask view code, it's possible
they aren't handling the root_path setting properly. Would you submit a new
issue on the ckan repository so we can investigate?

On Wed, Sep 5, 2018 at 2:15 PM Annette Greiner <amgreiner at lbl.gov> wrote:

> 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 listckan-dev at lists.okfn.orghttps://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
>
>
> _______________________________________________
> 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/20180905/953cdb1c/attachment-0002.html>


More information about the ckan-dev mailing list