S
S
santeri2014-02-23 21:49:33
Python
santeri, 2014-02-23 21:49:33

Python + django + wsgi + chroot: how to chroot each virtual host into a project folder?

I don't really understand how to make a chroot for each virtual host into the project folder, in other words, limit it to the file system.
I found the chroot option in WSGIProcessDaemon in some config examples, but the official mod_wsgi documentation doesn't say anything about it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zxmd, 2014-02-24
@zxmd

How are you spinning the python?
UWSGI has uid and gid options. they also say under whom the Uwsgi process will work.

X
xinn, 2014-02-25
@xinn

If the wsgi server is uWSGI, you can try uwsgi-docs.readthedocs.org/en/latest/Options.html?...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question