44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
#Listen 0.0.0.0:80 http
|
|
#Listen 0.0.0.0:8443 http
|
|
|
|
#<IfModule mod_ssl.c>
|
|
|
|
#WSGISocketPrefix run/wsgi
|
|
#WSGIRestrictStdout Off
|
|
#WSGIRestrictSignal Off
|
|
#WSGIPythonOptimize 1
|
|
|
|
<VirtualHost *:80>
|
|
#<VirtualHost *:8443>
|
|
ServerName mbs.leap.host
|
|
# WSGIDaemonProcess mbs user=mbs group=mbs threads=6
|
|
WSGIDaemonProcess mbs user=fedmsg group=fedmsg maximum-requests=1000 display-name=mbs processes=1 threads=1
|
|
WSGIScriptAlias / /etc/module-build-service/mbs.wsgi
|
|
WSGIPassAuthorization on
|
|
<Directory /etc/module-build-service>
|
|
WSGIProcessGroup mbs
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
# WSGIApplicationGroup %{GLOBAL}
|
|
Require all granted
|
|
</Directory>
|
|
# <Location /> # <- 测试时不使用 Krb 注释掉
|
|
# AuthType GSSAPI
|
|
# AuthName "GSSAPI Single Sign On Login"
|
|
# GssapiCredStore keytab:/etc/koji.keytab
|
|
# Require valid-user
|
|
# </Location>
|
|
|
|
# 测试时不使用 SSL 注释掉
|
|
# SSLCertificateFile /etc/letsencrypt/live/mbs.gnulab.org/fullchain.pem
|
|
# SSLCertificateKeyFile /etc/letsencrypt/live/mbs.gnulab.org/privkey.pem
|
|
# Include /etc/letsencrypt/options-ssl-apache.conf
|
|
CustomLog logs/mbs_access.log combined
|
|
ErrorLog logs/mbs_error.log
|
|
|
|
</VirtualHost>
|
|
#</IfModule>
|
|
|
|
|
|
RewriteEngine on
|
|
RewriteRule ^(|/+)$ /module-build-service/1/module-builds/ [L,R=302]
|