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
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to