mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-25 02:50:15 +08:00
Adjust the apache configuration for the docs server
This commit is contained in:
@@ -20,16 +20,8 @@
|
||||
#TODO: move this to 443 when we have the ssl certs
|
||||
|
||||
<VirtualHost docs.pagure.org:80>
|
||||
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
|
||||
|
||||
<Location />
|
||||
<Location /d>
|
||||
WSGIProcessGroup pagure
|
||||
<IfModule mod_authz_core.c>
|
||||
# Apache 2.4
|
||||
|
||||
@@ -23,6 +23,7 @@ WSGIPythonOptimize 1
|
||||
WSGIPassAuthorization On
|
||||
|
||||
WSGIScriptAlias / /var/www/pagure.wsgi
|
||||
WSGIScriptAlias /d /var/www/docs_pagure.wsgi
|
||||
|
||||
<Location />
|
||||
WSGIProcessGroup pagure
|
||||
@@ -50,6 +51,19 @@ WSGIScriptAlias / /var/www/pagure.wsgi
|
||||
</IfModule>
|
||||
</Location>
|
||||
|
||||
<Location /d>
|
||||
WSGIProcessGroup pagure
|
||||
<IfModule mod_authz_core.c>
|
||||
# Apache 2.4
|
||||
Require all granted
|
||||
</IfModule>
|
||||
<IfModule !mod_authz_core.c>
|
||||
# Apache 2.2
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
</IfModule>
|
||||
</Location>
|
||||
|
||||
<Directory /var/www/releases>
|
||||
Options +Indexes
|
||||
</Directory>
|
||||
|
||||
Reference in New Issue
Block a user