-
Notifications
You must be signed in to change notification settings - Fork 5
/
vcycle.httpd.conf
98 lines (84 loc) · 3.46 KB
/
vcycle.httpd.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#
# Generic common httpd.conf for Vac Project HTTP(S) services
#
# Andrew McNab, University of Manchester.
# Copyright (c) 2013-6. All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
# o Redistributions of source code must retain the above
# copyright notice, this list of conditions and the following
# disclaimer.
# o Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
# CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# Contacts: [email protected] http://www.gridpp.ac.uk/vac/
#
# Generic common httpd.conf for Vac Project HTTP(S) services
#
# 1) Copy this file to /etc/httpd/conf/httpd.conf
# 2) Add export OPENSSL_ALLOW_PROXY_CERTS=1 to /etc/sysconfig/httpd
# 3) Restart httpd
#
# This configuration does some basic HTTP(S) configuration of
# Apache httpd then loads the Vac Project services with filenames
# like /etc/httpd/includes/*.inc
# The same common httpd.conf can be used with one or more services
# (VacDepo, ViaB, Vcycle, ...)
#
ServerRoot "/etc/httpd"
PidFile /var/run/httpd/httpd.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 300
# On CentOS 7:
LoadModule systemd_module modules/mod_systemd.so
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
LoadModule unixd_module modules/mod_unixd.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule authz_core_module modules/mod_authz_core.so
# End of CentOS 7
LoadModule log_config_module /usr/lib64/httpd/modules/mod_log_config.so
LoadModule autoindex_module /usr/lib64/httpd/modules/mod_autoindex.so
LoadModule dir_module /usr/lib64/httpd/modules/mod_dir.so
LoadModule actions_module /usr/lib64/httpd/modules/mod_actions.so
LoadModule alias_module /usr/lib64/httpd/modules/mod_alias.so
LoadModule cgi_module /usr/lib64/httpd/modules/mod_cgi.so
LoadModule ssl_module /usr/lib64/httpd/modules/mod_ssl.so
LoadModule expires_module /usr/lib64/httpd/modules/mod_expires.so
# Apache's non-root user and group
User apache
Group apache
DocumentRoot "/var/www/html"
<Directory />
AllowOverride None
Options -Indexes
</Directory>
LogLevel info
LogFormat "%h \"%{SSL_CLIENT_S_DN}x\" %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
ErrorLog logs/error.log
Listen 80
Listen 443
SSLProtocol All -SSLv2 -SSLv3
SSLSessionCacheTimeout 300
SSLSessionCache shmcb:/var/cache/mod_ssl/shm_cache
Include includes/*.inc