2017-04-07 08:46:30 -04:00
|
|
|
Listen %PUBLICPORT%
|
|
|
|
|
|
|
|
<VirtualHost *:%PUBLICPORT%>
|
2023-11-09 23:15:17 +01:00
|
|
|
WSGIDaemonProcess mistral-api processes=%API_WORKERS% threads=1 user=%USER% display-name=%{GROUP} python-home=%MISTRAL_ENV_DIR%
|
2017-04-07 08:46:30 -04:00
|
|
|
WSGIProcessGroup mistral-api
|
2023-11-09 23:15:17 +01:00
|
|
|
WSGIScriptAlias / %MISTRAL_DIR%/mistral/api/wsgi.py
|
2017-04-07 08:46:30 -04:00
|
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
|
|
WSGIPassAuthorization On
|
|
|
|
AllowEncodedSlashes On
|
|
|
|
<IfVersion >= 2.4>
|
|
|
|
ErrorLogFormat "%{cu}t %M"
|
|
|
|
</IfVersion>
|
|
|
|
ErrorLog /var/log/%APACHE_NAME%/mistral_api.log
|
|
|
|
CustomLog /var/log/%APACHE_NAME%/mistral_api_access.log combined
|
|
|
|
|
2023-11-09 23:15:17 +01:00
|
|
|
<Directory %MISTRAL_DIR%/mistral/api/>
|
2017-04-07 08:46:30 -04:00
|
|
|
<IfVersion >= 2.4>
|
|
|
|
Require all granted
|
|
|
|
</IfVersion>
|
|
|
|
<IfVersion < 2.4>
|
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
|
|
|
</IfVersion>
|
|
|
|
</Directory>
|
|
|
|
</VirtualHost>
|