Adjust the apache configuration for the docs server
This commit is contained in:
parent
4126baab19
commit
cf582b5c3e
2 changed files with 15 additions and 9 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue