On Thu, Feb 6, 2020 at 3:32 PM Velu Narasimman <
velava...@gmail.com> wrote:
> Apache configuration file or virtual host configuration will be similar to this in my previous question.
- Should specify processes=N with value greater than 1 to WSGIDaemonProcess
- Should specify process-group=NAME and application-group=%{GROUP} to
WSGIScriptAlias
See also
https://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIScriptAlias.html
After changing the configuration, confirm process-group and
application-group of mod_wsgi in System Information of /about page in
your Trac instance.
--- httpd.conf 2020-02-06 16:01:24.954556600 +0900
+++ httpd.conf 2020-02-06 16:04:22.484843000 +0900
@@ -11,8 +11,8 @@
Protocols h2 h2c http/1.1
# uat conf
- WSGIScriptAlias /auth /path/to/DJANGO/WSGI/file
- WSGIDaemonProcess uat user=www-data group=www-data threads=25
python-path=/path/to/DJANGO/environment/Sourcecode
+ WSGIScriptAlias /auth /path/to/DJANGO/WSGI/file process-group=uat
application-group=%{GLOBAL}
+ WSGIDaemonProcess uat user=www-data group=www-data processes=8
threads=25 python-path=/path/to/DJANGO/environment/Sourcecode
WSGIProcessGroup uat
SSLEngine on
@@ -38,9 +38,8 @@
Require all granted
</Directory>
#Trac instance configuration
- WSGIScriptAlias / /usr/share/trac/trac.wsgi
+ WSGIScriptAlias / /usr/share/trac/trac.wsgi process-group=uat
application-group=%{GLOBAL}
<Directory "/opt/TracProjects">
- WSGIApplicationGroup %{GLOBAL}
Options Indexes FollowSymLinks
Order allow,deny
Allow from all