Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a virtual host setup with the follow config directive.

WSGIDaemonProcess myproject processes=2 threads=25

I would like to set the number of processes for each vhost using mod_wsgi to 2 without having to set it in each virtual host. How do I change the default? I would also like the ability to override this default within the vhost.

Thanks, Chris

share|improve this question

1 Answer 1

The mod_wsgi module does not provide a way of overriding the defaults. You may want to look at mod_macro:

http://www.cri.ensmp.fr/~coelho/mod_macro/

as a way of defining boilerplate which can then be used multiple times in different virtual hosts.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.