[GH-ISSUE #568] Docs: Run modoboa with apache/mod_wsgi as daemon #543

Closed
opened 2026-02-27 11:12:19 +03:00 by kerem · 1 comment
Owner

Originally created by @piwats on GitHub (Jun 11, 2014).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/568

Hello,

the django docs describe the mod_wsgi daemon mode as the recommended mode of running django applications under non-windows environments.

Here is my vhost configuration for modoboa, which can be used in the docs to show how this can be achieved:

ServerName example.com
    DocumentRoot /var/www/<path to modoboa>

    Alias /media/ /var/www/<path to modoboa>/mailadmin/media/
    Alias /sitestatic/ /var/www/<path to modoboa>/mailadmin/sitestatic/

    <Directory /var/www/<path to modoboa>>
            Require all granted
            #for apache-2.2 use old style AllowOrder &co.
    </Directory>

    WSGIDaemonProcess example.com processes=2 threads=15 display-name=%{GROUP} python-path=/var/www/<path to modoboa>:/usr/lib64/python2.7/site-packages
    WSGIProcessGroup example.com
    WSGIScriptAlias / /var/www/<path to modoboa>/mailadmin/wsgi.py

    <Directory /var/www/<path to modoboa>/mailadmin>
            Require all granted
    </Directory>
Originally created by @piwats on GitHub (Jun 11, 2014). Original GitHub issue: https://github.com/modoboa/modoboa/issues/568 Hello, the django docs describe the mod_wsgi daemon mode as the recommended mode of running django applications under non-windows environments. Here is my vhost configuration for modoboa, which can be used in the docs to show how this can be achieved: <example> <VirtualHost *:80> ServerName example.com ``` DocumentRoot /var/www/<path to modoboa> Alias /media/ /var/www/<path to modoboa>/mailadmin/media/ Alias /sitestatic/ /var/www/<path to modoboa>/mailadmin/sitestatic/ <Directory /var/www/<path to modoboa>> Require all granted #for apache-2.2 use old style AllowOrder &co. </Directory> WSGIDaemonProcess example.com processes=2 threads=15 display-name=%{GROUP} python-path=/var/www/<path to modoboa>:/usr/lib64/python2.7/site-packages WSGIProcessGroup example.com WSGIScriptAlias / /var/www/<path to modoboa>/mailadmin/wsgi.py <Directory /var/www/<path to modoboa>/mailadmin> Require all granted </Directory> ``` </VirtualHost> </example>
kerem 2026-02-27 11:12:19 +03:00
Author
Owner

@tonioo commented on GitHub (Jun 11, 2014):

A bit of documentation already covers this part : http://modoboa.readthedocs.org/en/latest/integration/web_servers.html#mod-wsgi.

But I can update it with the few extra settings you use.

<!-- gh-comment-id:45731712 --> @tonioo commented on GitHub (Jun 11, 2014): A bit of documentation already covers this part : http://modoboa.readthedocs.org/en/latest/integration/web_servers.html#mod-wsgi. But I can update it with the few extra settings you use.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#543
No description provided.