[ckan-dev] What is the DocumentRoot for ckan?

A Laxmi a.lakshmi458 at gmail.com
Wed Sep 25 14:08:18 UTC 2013


I tried as per your suggestion. But no change in the url. When I tried
loading http://127.0.0.1:5000/ckan it gives me 404 error and when I load
http://127.0.0.1:5000 it gives me ckan homepage.

Here is what I tried from your suggestion:
*
*
*production.ini:*

I added ckan.site_url: http://19#.###.#.##:5000/ckan
           ckan.api_url: /ckan
___________

*/etc/apache2/sites-available/ckan_default:*

<VirtualHost *:5000>
   Servername 19#.###.#.##:5000
   WSGIScriptAlias /ckan /etc/ckan/default/apache.wsgi
   WSGIPassAuthorization on
   WSGIDaemonProcess ckan_default display-name=ckan_default processes=2
threads=15
   WSGIProcessGroup ckan_default
   ErrorLog /var/log/apache2/ckan_default.error.log
   CustomLog /var/log/apache2/ckan_default.custom.log combined
</VirtualHost>
_____________
Then, I entered these two commands in the terminal:

/etc/apache2$

*sudo service apache2 reload*

* Reloading web server config
_______

/usr/lib/ckan/default/src/ckan$


*paster serve /etc/ckan/default/production.ini*

Starting server in PID 35023

serving on 0.0.0.0:5000 view at http://127.0.0.1:5000

______________

Within that ubuntu server where ckan is running, I tried loading
http://127.0.0.1:5000/ckan it gives me 404 error with ckan background and
when I load http://127.0.0.1:5000 it gives me ckan homepage with no errors.

Outside that server, when I tried loading http://19#.###.#.##/ckan -> it
gives me ckan background with *404 Not Found. The resouce cannot be found
error.
*


Please help!!


On Tue, Sep 24, 2013 at 10:04 PM, Nigel Babu <nigel.babu at okfn.org> wrote:

> Hi,
>
> You need to do several things to get that working.
>
> First, set the Apache virtualhost config, make the following change
> WSGIScriptAlias /ckan /etc/ckan/default/apache.wsgi
>
> Then, make the following changes in production.ini
> ckan.site_url = http://myckansite.com/ckan
> ckan.api_url = /ckan
>
> This should get it working. Remember, you can only test this when you
> deploy with Apache and not with `paster serve`.
>
> Nigel Babu
>
> Developer  |  @nigelbabu <https://twitter.com/nigelbabu>
>
> The Open Knowledge Foundation <http://okfn.org/>
>
> Empowering through Open Knowledge
>
> http://okfn.org/  |  @okfn <http://twitter.com/OKFN>  |  OKF on Facebook<https://www.facebook.com/OKFNetwork> |
> Blog <http://blog.okfn.org/>  |  Newsletter<http://okfn.org/about/newsletter>
>
>  CKAN | http://ckan.org/ | @CKANproject <http://twitter.com/CKANproject> |the world’s leading open-source data portal platform
>
>
> On 24 September 2013 20:05, A Laxmi <a.lakshmi458 at gmail.com> wrote:
>
>> I have deployed my ckan maintaining the same folder structure as
>> mentioned in http://docs.ckan.org/en/latest/deployment.html, I can visit
>> the ckan url in http://127.0.0.1:5000. However, I am trying to have the
>> url something like http://127.0.0.1:5000*/ckan. *How can I achieve that?
>>
>> _______________________________________________
>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130925/347ea2aa/attachment-0001.html>


More information about the ckan-dev mailing list