httpd config cleanup for copr-frontend-stg

This commit is contained in:
Mikolaj Izdebski 2018-08-27 19:50:47 +00:00
parent 672d0063e8
commit 75778f3beb
2 changed files with 10 additions and 31 deletions

View file

@ -17,7 +17,7 @@
- config
- name: copy apache files to conf.d (templates)
template: src=coprs.conf dest=/etc/httpd/conf.d/coprs.conf
template: src=httpd.conf dest=/etc/httpd/conf.d/coprs.conf
notify:
- reload httpd
tags:

View file

@ -1,8 +1,3 @@
NameVirtualHost *:80
LoadModule wsgi_module modules/mod_wsgi.so
WSGISocketPrefix /var/run/wsgi
Alias /robots.txt /var/www/html/robots.txt
WSGIDaemonProcess 127.0.0.1 user=copr-fe group=copr-fe threads=15 display-name=other maximum-requests=8000 graceful-timeout=20
WSGIDaemonProcess api user=copr-fe group=copr-fe threads=15 display-name=api maximum-requests=8000 graceful-timeout=20
WSGIDaemonProcess backend user=copr-fe group=copr-fe threads=15 display-name=backend maximum-requests=8000 graceful-timeout=20
@ -10,33 +5,17 @@ WSGIDaemonProcess stats user=copr-fe group=copr-fe threads=15 display-name=stats
WSGIDaemonProcess tmp user=copr-fe group=copr-fe threads=15 display-name=tmp maximum-requests=8000 graceful-timeout=20
WSGIScriptAlias / /usr/share/copr/coprs_frontend/application
<VirtualHost *:80>
ServerName copr.fedorainfracloud.org
ServerAlias copr-fe.cloud.fedoraproject.org
WSGIPassAuthorization On
ServerName {{ inventory_hostname }}
WSGIPassAuthorization On
<Location />
WSGIProcessGroup 127.0.0.1
</Location>
#ErrorLog logs/error_coprs
#CustomLog logs/access_coprs common
<Directory /usr/share/copr>
WSGIApplicationGroup %{GLOBAL}
Require all granted
</Directory>
</VirtualHost>
<IfModule mod_status.c>
ExtendedStatus On
<Location /server-status>
SetHandler server-status
Require all denied
Require host localhost .redhat.com
<Location />
WSGIProcessGroup 127.0.0.1
</Location>
</IfModule>
<Directory /usr/share/copr>
WSGIApplicationGroup %{GLOBAL}
Require all granted
</Directory>
<IfModule mpm_prefork_module>
StartServers 8