diff --git a/roles/pagure/frontend/files/0_pagure.conf b/roles/pagure/frontend/files/0_pagure.conf index 0e96006b0c..39df8f9892 100644 --- a/roles/pagure/frontend/files/0_pagure.conf +++ b/roles/pagure/frontend/files/0_pagure.conf @@ -20,16 +20,8 @@ #TODO: move this to 443 when we have the ssl certs - WSGIDaemonProcess pagure user=git group=git maximum-requests=50000 display-name=pagure processes=8 threads=4 inactivity-timeout=300 - WSGISocketPrefix run/wsgi - WSGIRestrictStdout On - WSGIRestrictSignal Off - WSGIPythonOptimize 1 - - WSGIScriptAlias / /usr/share/pagure/doc_pagure.wsgi - - + WSGIProcessGroup pagure # Apache 2.4 diff --git a/roles/pagure/frontend/templates/pagure.conf b/roles/pagure/frontend/templates/pagure.conf index eb688ce276..8ef98b9e6c 100644 --- a/roles/pagure/frontend/templates/pagure.conf +++ b/roles/pagure/frontend/templates/pagure.conf @@ -23,6 +23,7 @@ WSGIPythonOptimize 1 WSGIPassAuthorization On WSGIScriptAlias / /var/www/pagure.wsgi +WSGIScriptAlias /d /var/www/docs_pagure.wsgi WSGIProcessGroup pagure @@ -50,6 +51,19 @@ WSGIScriptAlias / /var/www/pagure.wsgi + + WSGIProcessGroup pagure + + # Apache 2.4 + Require all granted + + + # Apache 2.2 + Order deny,allow + Allow from all + + + Options +Indexes