[ckan-dev] mounting CKAN at a non-root URL

Armin Retterath armin.retterath at gmail.com
Thu Aug 13 14:52:52 UTC 2015


hi nigel,

i have the same problem and here is my site:

http://www.gdi-rp-dienste.rlp.de/ckan/

but i solved some issues with css and so on with different proxy entries
:-( :

<IfModule mod_proxy.c>
ProxyPreserveHost on
ProxyPass /geoserver http://127.0.0.1:8180/geoserver
ProxyPassReverse /geoserver http://127.0.0.1:8180/geoserver
ProxyPass /geonetwork http://127.0.0.1:8081/geonetwork
ProxyPassReverse /geonetwork http://127.0.0.1:8081/geonetwork
#ProxyPass /skosmos http://127.0.0.1/skosmos/
#ProxyPassReverse /skosmos http://127.0.0.1/skosmos/


ProxyPass /fanstatic/ http://myip/fanstatic/
ProxyPassReverse /fanstatic/ http://myip/fanstatic/

ProxyPass /base http://myip/base
ProxyPassReverse /base http://myip/base

ProxyPass /dataset http://myip/dataset
ProxyPassReverse /dataset http://myip/dataset

ProxyPass /api http://myip/api
ProxyPassReverse /api http://myip/api

ProxyPass /organization http://myip/organization
ProxyPassReverse /organization http://myip/organization

ProxyPass /group http://myip/group
ProxyPassReverse /group http://myip/group

ProxyPass /about http://myip/about
ProxyPassReverse /about http://myip/about

ProxyPass /user http://myip/user
ProxyPassReverse /user http://myip/user

ProxyPass /login_generic http://myip/login_generic
ProxyPassReverse /login_generic http://myip/login_generic

ProxyPass /dashboard http://myip/dashboard
ProxyPassReverse /dashboard http://myip/dashboard

ProxyPass /js http://myip/js
ProxyPassReverse /js http://myip/js

ProxyPass /css http://myip/css
ProxyPassReverse /css http://myip/css




ProxyPass /ckan http://myip/
ProxyPassReverse /ckan http://myip/

</IfModule>


is it not possible to run ckan on a different path?
i also have the problem, that the proxy environment is not used when
running under wsgi :-( .

in version 1.8 there was a simple solution for altering the path:
http://docs.ckan.org/en/ckan-1.8/deployment.html

best regards from germany

armin

2015-08-13 16:23 GMT+02:00 Nigel Babu <nigel at nigelb.me>:

> Can you link me to the site? If not, please paste the output of
> /api/action/status_show. In your case, it might be
> ckan/api/action/status_show.
>
> Can you also view the source of the page and paste the <body> tag? I'd
> like to see the values of data-site-root and data-locale-root.
>
> --
> nigelb
>
> On Wed, Aug 12, 2015, at 03:35 PM, Giuliano Veronese - Provincia di
> Pordenone wrote:
> > Thanks nigelb,
> > but unfortunately it's not working.
> > The internal links do not work and the css is not loaded.
> > For example: dataset always points to http://ckan.somedomain.it/dataset
> > and not http://ckan.somedomain.it/ckan/dataset.
> > I can not understand what is wrong.
> > Giuliano
> >
> > Il 12/08/2015 08:10, Nigel Babu ha scritto:
> > > Hi Giuliano,
> > >
> > > You need to also set ckan.site_url to point to the right URL.
> > >
> >
> > _______________________________________________
> > 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
> _______________________________________________
> 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/20150813/b38a6565/attachment-0003.html>


More information about the ckan-dev mailing list