ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/apache2-frontend/apache2.conf
(Generate patch)

Comparing apache2-frontend/apache2.conf (file contents):
Revision 1.1 by root, Mon Jun 15 18:16:46 2015 UTC vs.
Revision 1.14 by root, Tue Aug 22 18:29:44 2017 UTC

4 4
5#ServerRoot "/dev/null" 5#ServerRoot "/dev/null"
6Mutex pthread default 6Mutex pthread default
7PidFile /run/frontend.pid 7PidFile /run/frontend.pid
8 8
9Timeout 60 9Timeout 30
10KeepAlive On 10KeepAlive On
11MaxKeepAliveRequests 100 11MaxKeepAliveRequests 100
12KeepAliveTimeout 30 12KeepAliveTimeout 2
13 13
14#TODO: should be it's own user id
14User www-data 15User www-data
15Group www-data 16Group www-data
16 17
18GracefulShutdownTimeout 8
19
20AddDefaultCharset UTF-8
21# EnableSendfile On
22
23# to be sure, spell out some defaults
17HostnameLookups Off 24HostnameLookups Off
25AllowEncodedSlashes Off
18 26
19# LogLevel: Control the severity of messages logged to the error_log. 27# LogLevel: Control the severity of messages logged to the error_log.
20# Available values: trace8, ..., trace1, debug, info, notice, warn, 28# Available values: trace8, ..., trace1, debug, info, notice, warn,
21# error, crit, alert, emerg. 29# error, crit, alert, emerg.
22# It is also possible to configure the log level for particular modules, e.g. 30# It is also possible to configure the log level for particular modules, e.g.
23# "LogLevel info ssl:warn" 31# "LogLevel info ssl:warn"
24# 32#
25LogLevel warn 33LogLevel warn
26 34
35# event segfaults, hangs, creates unexplained error messages...
27LoadModule mpm_event_module /usr/lib/apache2/modules/mod_mpm_event.so 36#LoadModule mpm_event_module /usr/lib/apache2/modules/mod_mpm_event.so
37LoadModule mpm_worker_module /usr/lib/apache2/modules/mod_mpm_worker.so
38#LoadModule mpm_prefork_module /usr/lib/apache2/modules/mod_mpm_prefork.so
28LoadModule authz_core_module /usr/lib/apache2/modules/mod_authz_core.so 39LoadModule authz_core_module /usr/lib/apache2/modules/mod_authz_core.so
29LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.so 40LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.so
30 41
31LoadModule mime_module /usr/lib/apache2/modules/mod_mime.so 42LoadModule mime_module /usr/lib/apache2/modules/mod_mime.so
32TypesConfig /etc/mime.types 43TypesConfig /etc/mime.types
44LoadModule mime_magic_module /usr/lib/apache2/modules/mod_mime_magic.so
45MIMEMagicFile /etc/apache2/magic
33 46
34# must not be loaded 47# must NOT be loaded
35#LoadModule dir_module /usr/lib/apache2/modules/mod_dir.so 48#LoadModule dir_module /usr/lib/apache2/modules/mod_dir.so
36#DirectoryIndex index.html 49#DirectoryIndex index.html
37 50
38LoadModule autoindex_module /usr/lib/apache2/modules/mod_autoindex.so 51LoadModule autoindex_module /usr/lib/apache2/modules/mod_autoindex.so
39IndexOptions Charset=UTF-8 FancyIndexing FoldersFirst HTMLTable SuppressColumnSorting 52IndexOptions Charset=UTF-8 FancyIndexing FoldersFirst HTMLTable IgnoreCase SuppressColumnSorting NameWidth=* SuppressDescription SuppressIcon
40HeaderName HEADER.html 53HeaderName HEADER.html
41ReadmeName FOOTER.html 54ReadmeName FOOTER.html
42 55
56LoadModule status_module /usr/lib/apache2/modules/mod_status.so
57#ExtendedStatus Off # ON is the default
58
43LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so 59LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
44#LoadModule proxy_fcgi_module /usr/lib/apache2/modules/mod_proxy_fcgi.so 60#LoadModule proxy_fcgi_module /usr/lib/apache2/modules/mod_proxy_fcgi.so
61
45LoadModule proxy_scgi_module /usr/lib/apache2/modules/mod_proxy_scgi.so 62LoadModule proxy_scgi_module /usr/lib/apache2/modules/mod_proxy_scgi.so
63#ProxySCGIInternalRedirect Internal-Redirect apache 2.6 :/
64ProxySCGIInternalRedirect On
65ProxySCGISendfile On
66
46#LoadModule proxy_fdpass_module /usr/lib/apache2/modules/mod_proxy_fdpass.so 67#LoadModule proxy_fdpass_module /usr/lib/apache2/modules/mod_proxy_fdpass.so
47LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so 68LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
48LoadModule xml2enc_module /usr/lib/apache2/modules/mod_xml2enc.so 69LoadModule xml2enc_module /usr/lib/apache2/modules/mod_xml2enc.so
49LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so 70LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so
50LoadModule proxy_html_module /usr/lib/apache2/modules/mod_proxy_html.so 71LoadModule proxy_html_module /usr/lib/apache2/modules/mod_proxy_html.so
51 72
52LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so 73LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so
53 74
54# Sets the default security model of the Apache2 HTTPD server. It does
55# not allow access to the root filesystem outside of /usr/share and /var/www.
56# The former is used by web applications packaged in Debian,
57# the latter may be used for local directories served by the web server. If
58# your system is serving content from a sub-directory in /srv you must allow
59# access here, or in any related virtual host.
60<Directory /> 75#<Directory />
61 Options FollowSymLinks 76# Options FollowSymLinks
62 AllowOverride None 77# AllowOverride None
63 Require all denied 78## Require all denied
64</Directory> 79#</Directory>
65 80
66<Directory /var/www/>
67 Options Indexes FollowSymLinks
68 Require all granted
69</Directory>
70
71AccessFileName .htaccess 81#AccessFileName .htaccess
72
73#
74# The following lines prevent .htaccess and .htpasswd files from being
75# viewed by Web clients.
76#
77<FilesMatch "^\.ht">
78 Require all denied
79</FilesMatch>
80 82
81LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %{Host}i" schmorp 83LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %{Host}i" schmorp
82LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined 84LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
83LogFormat "%h %l %u %t \"%r\" %>s %O" common 85LogFormat "%h %l %u %t \"%r\" %>s %O" common
84LogFormat "%{Referer}i -> %U" referer 86LogFormat "%{Referer}i -> %U" referer
85LogFormat "%{User-agent}i" agent 87LogFormat "%{User-agent}i" agent
86 88
87CustomLog /var/log/frontend/access.log schmorp 89CustomLog /var/log/frontend/access.log schmorp env=!suppress-logging
88ErrorLog /var/log/frontend/error.log 90ErrorLog /var/log/frontend/error.log
89 91
92ListenBacklog 511
90ServerLimit 1 93ServerLimit 1
91MaxClients 100 94#MaxClients 100
92MaxRequestWorkers 100 95MaxRequestWorkers 100
93StartServers 1 96StartServers 1
94ThreadsPerChild 100 97ThreadsPerChild 100
95ThreadLimit 100 98ThreadLimit 100
96MinSpareThreads 6 99MinSpareThreads 6
97MaxSpareThreads 16 100MaxSpareThreads 100
98 101
99MaxMemFree 64 102MaxMemFree 64
100#ThreadStackSize 65536 # basically gets ignored 103ThreadStackSize 196608
101 104
102PerlInterpStart 1 105PerlInterpStart 1
103PerlInterpMax 1 106PerlInterpMax 1
104PerlInterpMinSpare 0 107PerlInterpMinSpare 0
105PerlInterpMaxSpare 1 108PerlInterpMaxSpare 1
106PerlInterpScope Handler 109#PerlInterpScope Handler
107 110
108Include proxy_html.conf 111Include proxy_html.conf
109 112
110# for debugging, enable reverse proxy url rewrite logging 113# for debugging, enable reverse proxy url rewrite logging
111#LogLevel warn proxy_html:trace3 114#LogLevel warn proxy_html:trace3
122 use Apache2::Const -compile => qw(OK); 125 use Apache2::Const -compile => qw(OK);
123 use lib Apache2::ServerUtil::server_root; 126 use lib Apache2::ServerUtil::server_root;
124 use proxy_impl; 127 use proxy_impl;
125</Perl> 128</Perl>
126 129
127PerlOptions None +Trans +MapToStorage +HeaderParser +Authen +Authz +Type 130PerlOptions None +Trans +MapToStorage +HeaderParser +Authz +Type
128 131
129PerlTransHandler Apache2::Const::OK 132PerlTransHandler Apache2::Const::OK
130PerlMapToStorageHandler proxy_impl::map_to_storage 133PerlMapToStorageHandler proxy_impl::map_to_storage
131PerlHeaderParserHandler Apache2::Const::OK 134PerlHeaderParserHandler Apache2::Const::OK
135
136#PerlAuthenHandler Apache2::Const::OK
137PerlAuthzHandler Apache2::Const::OK
138
139# always runs all
132#PerlAccessHandler Apache2::Const::OK 140#PerlAccessHandler Apache2::Const::OK
133PerlAuthenHandler Apache2::Const::OK
134PerlAuthzHandler Apache2::Const::OK
135#PerlTypeHandler Apache2::Const::OK 141#PerlTypeHandler Apache2::Const::OK
136#PerlFixupHandler Apache2::Const::OK 142#PerlFixupHandler Apache2::Const::OK
137 143
138# handlers run anyway 144# handlers run anyway
139# fixup mod_proxy checks for proxy: handler strings 145# fixup mod_proxy checks for proxy: handler strings
140# fixup mod_ssl annotates with lots of ssl, or updates for ssl optional 146# fixup mod_ssl annotates with lots of ssl, or updates for ssl optional
141# type mod_mime does its job 147# type mod_mime mod_mime_magic do their job
142 148
143# RUN_FIRST translate_name 149# RUN_FIRST translate_name
144# RUN_FIRST map_to_storage 150# RUN_FIRST map_to_storage
145# RUN_FIRST check_user_id 151# RUN_FIRST check_user_id
146# RUN_ALL fixups 152# RUN_ALL fixups
158# mod_autoindex response 164# mod_autoindex response
159# ap_process_request_internal() function in server/request.c 165# ap_process_request_internal() function in server/request.c
160 166
161<Location /> 167<Location />
162 Options Indexes FollowSymLinks 168 Options Indexes FollowSymLinks
163 Require all granted 169# Require all granted
164</Location> 170</Location>
165 171
166Include local.conf 172Include local.conf
167 173
168# vim: syntax=apache ts=8 sw=4 174# vim: syntax=apache ts=8 sw=4

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines