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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines