[ckan-discuss] Installing CKAN under url?

Friedrich Lindenberg friedrich at pudo.org
Mon Nov 29 12:44:27 GMT 2010


Hi Keng, 

after looking through the source code for a second, I don't think that what you're asking is very easy to implement using the current code base. While we should definetly refactor to allow this kind of mounting, for now you're probably best off using one of those three routes: 

* Use a subdomain, e.g. catalogue.opendata.in.th. 
* Use the deliverance plugin to pipe drupal content through CKAN. This would mean all theming needs to be done in CKAN (very doable), but I will have to move the plugin to the new version of CKAN first: http://bitbucket.org/pudo/ckanextdeliverance
* Mount CKAN at / but make apache serve drupal for 404s. This would mean /package goes to CKAN, /node to Drupal etc. Not a nice setup. 

Best, 

 Friedrich 

On Nov 28, 2010, at 12:08 PM, Patipat Susumpow wrote:

> Hi all,
> 
> I'm trying to setup CKAN for Open Data Thailand Initiative at http://opendata.in.th/ckan (it's inaccessible now). I've follow the 'Production Deployment' steps (http://knowledgeforge.net/ckan/doc/ckan/deployment.html) and can get CKAN instance run perfectly at http://opendata.in.th
> 
> I've changed my /etc/apache2/sites-available/opendata.in.th.ini as highligh to push CKAN instance accessible from http://opendata.in.th/ckan instead of http://opendata.in.th which I wish to put Drupal as a frontend.
> 
> <VirtualHost *:80>
>     ServerName opendata.in.th
>     ServerAlias opendata.in.th
> 
>     WSGIScriptAlias /ckan /home/keng/var/srvc/opendata.in.th/pyenv/bin/opendata.in.th.py
>     # pass authorization info on (needed for rest api)
>     WSGIPassAuthorization On
> 
>     ErrorLog /var/log/apache2/opendata.in.th.error.log
>     CustomLog /var/log/apache2/opendata.in.th.custom.log combined
> </VirtualHost>
> 
> After I've done this, I've lost all stylesheets/scripts/images references, due to those directory are refered as an absolute pate, for example the main logo reference is
> 
> <img style="display: inline;" title="Open Data Thailand Logo" alt="Open Data Thailand Logo" src="/images/ckan_logo_fullname_long.png"> 
> 
> I'm wondering is there any way to install CKAN under sub url?
> 
> Keng.
> _______________________________________________
> ckan-discuss mailing list
> ckan-discuss at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-discuss/attachments/20101129/67f6e65c/attachment.htm>


More information about the ckan-discuss mailing list