WSGI file for ceph-rest-api

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm trying to run the ceph_rest_api module as a WSGI application behind 
Apache with mod_wsgi but I'm struggling a bit.

Not having used WSGI that much I'm stuck on the .wsgi file. Has anybody 
done this before?

I've been reading the Flask [0] and Ceph [1] docs, but it's not clear to 
me yet.

I need a WSGI file to bootstrap it all, but what should I put in the 
WSGI file and my Apache (2.4) VirtualHost?

So far my VirtualHost is fairly simple:

<VirtualHost *:80>
     DocumentRoot /var/www
     ServerName ceph-rest-api

     ErrorLog /var/log/apache2/ceph-rest-api_error.log
     CustomLog /var/log/apache2/ceph-rest-api_access.log combined

     WSGIScriptAlias / /var/www/ceph-rest-api.wsgi
</VirtualHost>

[0]: http://flask.pocoo.org/docs/deploying/mod_wsgi/
[1]: http://eu.ceph.com/docs/master/man/8/ceph-rest-api/

-- 
Wido den Hollander
Ceph consultant and trainer
42on B.V.

Phone: +31 (0)20 700 9902
Skype: contact42on


[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux