On Thu, Feb 6, 2020 at 3:32 PM Velu Narasimman <[email protected]> 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



-- 
Jun Omae <[email protected]> (大前 潤)

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CAEVLMah5H%3DPOeor8HRgqLq1ChfJ7ug6uUbGaWO3nw_AA4An7LA%40mail.gmail.com.

Reply via email to