aboutsummaryrefslogtreecommitdiff
path: root/etc/httpd.conf
blob: 2570a5b96e46eb3ed418874dd4bac4993b98c0f4 (plain)
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
Listen       ${AP_PORT}
ServerName  "${AP_SERVER_NAME}"
ServerAdmin "${AP_ADMIN_EMAIL}"

User apache
Group apache

CoreDumpDirectory "${AP_WORKSPACE_DIR}"
PidFile           "${AP_WORKSPACE_DIR}/httpd.pid"

#ErrorLog error_log
ErrorLog "|/usr/sbin/rotatelogs error_log.%Y%m%d 86400"
ErrorLogFormat "[%t] [%l] [%m] %M"
LogLevel ${AP_LOG_LEVEL}

Timeout 60
KeepAlive On
KeepAliveTimeout 3

ThreadLimit        1000
ServerLimit           2
StartServers          1
MaxClients         1000
MinSpareThreads     400
MaxSpareThreads     600
ThreadsPerChild     500
MaxRequestsPerChild   0

LoadModule mpm_worker_module /usr/lib64/httpd/modules/mod_mpm_worker.so
LoadModule unixd_module /usr/lib64/httpd/modules/mod_unixd.so
LoadModule filter_module /usr/lib64/httpd/modules/mod_filter.so
LoadModule access_compat_module /usr/lib64/httpd/modules/mod_access_compat.so
LoadModule authn_core_module /usr/lib64/httpd/modules/mod_authn_core.so
LoadModule authz_core_module /usr/lib64/httpd/modules/mod_authz_core.so
LoadModule status_module /usr/lib64/httpd/modules/mod_status.so
LoadModule mime_module /usr/lib64/httpd/modules/mod_mime.so
LoadModule deflate_module /usr/lib64/httpd/modules/mod_deflate.so
LoadModule authz_host_module /usr/lib64/httpd/modules/mod_authz_host.so
LoadModule expires_module /usr/lib64/httpd/modules/mod_expires.so
LoadModule dir_module /usr/lib64/httpd/modules/mod_dir.so
LoadModule alias_module /usr/lib64/httpd/modules/mod_alias.so

LoadModule package_search_srv ${AP_MODULE_DIR}/libbrep-apache.so

<IfModule package_search_srv>
  package-search-root    "${AP_ROOT}"
  package-search-db-host ${AP_DB_HOST}
  package-search-db-port ${AP_DB_PORT}
  package-search-conf    ${AP_CONFIG_DIR}/package-search.conf
</IfModule>

LoadModule package_details_srv ${AP_MODULE_DIR}/libbrep-apache.so

<IfModule package_details_srv>
  package-details-root    "${AP_ROOT}"
  package-details-db-host ${AP_DB_HOST}
  package-details-db-port ${AP_DB_PORT}
  package-details-conf    ${AP_CONFIG_DIR}/package-details.conf
</IfModule>

LoadModule package_version_details_srv ${AP_MODULE_DIR}/libbrep-apache.so

<IfModule package_version_details_srv>
  package-version-details-root    "${AP_ROOT}"
  package-version-details-db-host ${AP_DB_HOST}
  package-version-details-db-port ${AP_DB_PORT}
  package-version-details-conf    ${AP_CONFIG_DIR}/package-version-details.conf
</IfModule>

LoadModule repository_details_srv ${AP_MODULE_DIR}/libbrep-apache.so

<IfModule repository_details_srv>
  repository-details-root    "${AP_ROOT}"
  repository-details-db-host ${AP_DB_HOST}
  repository-details-db-port ${AP_DB_PORT}
  repository-details-conf    ${AP_CONFIG_DIR}/repository-details.conf
</IfModule>

<LocationMatch ^${AP_ROOT}/?$>
  SetHandler package-search
</LocationMatch>

<LocationMatch ^${AP_ROOT}/go/[^/]+$>
  SetHandler package-details
</LocationMatch>

<LocationMatch ^${AP_ROOT}/go/[^/]+/[^/]+$>
  SetHandler package-version-details
</LocationMatch>

<LocationMatch ^${AP_ROOT}/about$>
  SetHandler repository-details
</LocationMatch>

AliasMatch ^${AP_ROOT}/(.+) ${AP_WWW_DIR}/$1

ExtendedStatus On

<Location /server-status>
  SetHandler server-status
  Order deny,allow
  Deny from all
  Allow from 127.0.0
  Allow from localhost
</Location>

<Directory />
  Options FollowSymLinks
  AllowOverride None
</Directory>

DirectoryIndex index.html
TypesConfig /etc/mime.types
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE text/css