[ckan-dev] CKAN 2.0 under sub-url

Toby Dacre toby.okfn at gmail.com
Tue May 28 19:57:29 UTC 2013


On 28 May 2013 20:13, Luis <eltipicoemail at gmail.com> wrote:
> Hi Nigel & User66,
>
> Thank you both for your replies. Setting api_url seems to fix the issue :-),
> but unfortunately it breaks reclinepreview extension (I guess). It actually
> works with default english language, but if you set it to another one,
> recline stops working. I have an online site so you can check this out:
>
> http://taro-des.ull.es/datos/dataset/intermediadores-turisticos/resource/f0c4d85b-f515-4a9b-9a8c-399daa8c26c4
> --- preview ok
>
> http://taro-des.ull.es/datos/es/dataset/intermediadores-turisticos/resource/f0c4d85b-f515-4a9b-9a8c-399daa8c26c4
> --- no preview (404 not found)
>
> My production.ini:
>
> ...
> ckan.api_url = /datos
> ...
>
> And my Apache2 ckan_default:
>
> ...
> WSGIScriptAlias /datos /etc/ckan/default/apache.wsgi
> ...
>
> Could you please tell me if I am doing anything wrong?
>

no, this appears to be a ckan bug.  it is part of issue
https://github.com/okfn/ckan/issues/913
this will hopefully be fixed shortly.

Thank you for your report it has been very helpful


>
> Cheers,
>
>
>
> 2013/5/27 Nigel Babu <nigel.babu at okfn.org>
>>
>> Hi Luis,
>>
>> We've actually discovered a potential solution for this problem.  Can you
>> try setting ckan.api_url = /ckan in your production.ini file?
>>
>> Nigel Babu
>>
>> Developer  |  @nigelbabu
>>
>> The Open Knowledge Foundation
>>
>> Empowering through Open Knowledge
>>
>> http://okfn.org/  |  @okfn  |  OKF on Facebook  |  Blog  |  Newsletter
>>
>>
>> CKAN | http://ckan.org/ | @CKANproject | the world’s leading open-source
>> data portal platform
>>
>>
>> On 26 May 2013 02:26, User66 <user66 at arcor.de> wrote:
>>>
>>> Hi Luis,
>>>
>>> this is a known issue IMHO without solution.
>>>
>>> See archive:
>>> http://lists.okfn.org/pipermail/ckan-dev/2013-April/004417.html
>>> http://lists.okfn.org/pipermail/ckan-dev/2013-May/004861.html
>>>
>>> Cheers
>>> Ralf
>>>
>>> ----------------ursprüngliche Nachricht-----------------
>>> Von: "Luis" eltipicoemail at gmail.com
>>> An: ckan-dev at lists.okfn.org
>>> Datum: Sat, 25 May 2013 19:27:38 +0100
>>> -------------------------------------------------
>>>
>>> > Hi all,
>>> >
>>> > I have successfully installed CKAN 2.0 under a sub-url (
>>> > http://mydomain.com/ckan) but I have realized there are some features
>>> > which
>>> > don't seem to work well.
>>> > If I try to 'add a new dataset' the URL field is not autofilled when I
>>> > type
>>> > the title in the 'Create data' step. Furthermore, the 'Upload a file'
>>> > link
>>> > doesn't display in the 'Add data' step.
>>> > In my /etc/apache2/sites-available/ckan_default I have:
>>> >
>>> > WSGIScriptAlias /ckan /etc/ckan/default/apache.wsgi
>>> >
>>> > If I edit this to:
>>> >
>>> > WSGIScriptAlias / /etc/ckan/default/apache.wsgi
>>> >
>>> > Everything works as expected (autofilling URL, FileStorage...), so I
>>> > guess
>>> > the problem is my CKAN lives in a sub-url. Is there any solution for
>>> > this
>>> > or is this the expected behaviour?
>>> >
>>> > Thank you!
>>>
>>>
>>>
>>> _______________________________________________
>>> ckan-dev mailing list
>>> ckan-dev at lists.okfn.org
>>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>>> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>>
>>
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>



-- 
Toby Dacre

The Open Knowledge Foundation

Empowering through Open Knowledge
http://okfn.org/  |  @okfn




More information about the ckan-dev mailing list