-
Notifications
You must be signed in to change notification settings - Fork 7
/
bugzilla.conf
34 lines (27 loc) · 985 Bytes
/
bugzilla.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<VirtualHost *:80>
ServerAdmin bugzilla.dev@unee-t.com
DocumentRoot /opt/bugzilla
ServerSignature Off
AddDefaultCharset UTF-8
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule . https://%{HTTP:Host}%{REQUEST_URI} [L,NE,R=permanent]
ErrorLog /dev/stderr
# Filter ELB-HealthChecker
SetEnvIf User-Agent "^ELB-HealthChecker.*" dontlog
RemoteIPHeader X-Forwarded-For
LogFormat "%a %l %u %t \"%r\" %>s %O %{ms}T \"%{Referer}i\" \"%{User-Agent}i\"" albformat
CustomLog ${APACHE_LOG_DIR}/access.log albformat env=!dontlog
# https://www.bugzilla.org/docs/4.4/en/html/configuration.html
# https://bugzilla.readthedocs.io/en/latest/installing/apache.html#apache-with-mod-perl
KeepAlive off
PerlSwitches -wT
PerlConfigRequire /opt/bugzilla/mod_perl.pl
<Directory /opt/bugzilla>
Options -Indexes +FollowSymLinks
DirectoryIndex index.cgi index.html
AllowOverride Limit FileInfo Indexes Options AuthConfig
Require all granted
SetEnv HTTPS on
</Directory>
</VirtualHost>