[ckan-discuss] Installing CKAN under url?
Rufus Pollock
rufus.pollock at okfn.org
Tue Nov 30 15:57:14 GMT 2010
On 28 November 2010 11:08, Patipat Susumpow <kengggg at gmail.com> 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?
To follow up Friedrich's comments ...
You should be able to install CKAN at a suburl and I've created a
ticket to this effect: <http://ckan.org/ticket/836>
As I understand it the majority of the sites and links work it is just
that there are some hard-coded links e.g. for this logo -- or are
there other, more fundamental problems (in general a pylons wsgi app
will take account of its url mount point in generating urls ...)
Rufus
More information about the ckan-discuss
mailing list