ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/apache2-frontend/apache2.conf
Revision: 1.26
Committed: Mon Sep 14 13:28:56 2026 UTC (2 weeks, 3 days ago) by root
Branch: MAIN
CVS Tags: HEAD
Changes since 1.25: +0 -1 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 # apache2 -X -d /etc/frontend -e debug
2    
3     # apt-get install apache2 libapache2-mod-perl2 libdata-dump-perl libcommon-sense-perl
4    
5     #ServerRoot "/dev/null"
6     Mutex pthread default
7     PidFile /run/frontend.pid
8    
9 root 1.9 Timeout 30
10 root 1.1 KeepAlive On
11     MaxKeepAliveRequests 100
12 root 1.9 KeepAliveTimeout 2
13 root 1.1
14 root 1.9 #TODO: should be it's own user id
15 root 1.1 User www-data
16     Group www-data
17    
18 root 1.9 GracefulShutdownTimeout 8
19 root 1.1
20 root 1.5 AddDefaultCharset UTF-8
21 root 1.9 # EnableSendfile On
22    
23     # to be sure, spell out some defaults
24     HostnameLookups Off
25     AllowEncodedSlashes Off
26 root 1.5
27 root 1.1 # LogLevel: Control the severity of messages logged to the error_log.
28     # Available values: trace8, ..., trace1, debug, info, notice, warn,
29     # error, crit, alert, emerg.
30     # It is also possible to configure the log level for particular modules, e.g.
31     # "LogLevel info ssl:warn"
32     #
33     LogLevel warn
34    
35 root 1.9 # event segfaults, hangs, creates unexplained error messages...
36 root 1.23 LoadModule mpm_event_module /usr/lib/apache2/modules/mod_mpm_event.so
37     #LoadModule mpm_worker_module /usr/lib/apache2/modules/mod_mpm_worker.so
38 root 1.9 #LoadModule mpm_prefork_module /usr/lib/apache2/modules/mod_mpm_prefork.so
39 root 1.1 LoadModule authz_core_module /usr/lib/apache2/modules/mod_authz_core.so
40     LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.so
41    
42 root 1.24 LoadModule http2_module /usr/lib/apache2/modules/mod_http2.so
43     Protocols h2 http/1.1
44     H2WebSockets Off
45     H2MinWorkers 2
46     H2MaxWorkers 64
47     H2MaxWorkerIdleSeconds 60
48    
49 root 1.1 LoadModule mime_module /usr/lib/apache2/modules/mod_mime.so
50     TypesConfig /etc/mime.types
51 root 1.7 LoadModule mime_magic_module /usr/lib/apache2/modules/mod_mime_magic.so
52 root 1.8 MIMEMagicFile /etc/apache2/magic
53 root 1.1
54 root 1.11 # must NOT be loaded
55 root 1.1 #LoadModule dir_module /usr/lib/apache2/modules/mod_dir.so
56     #DirectoryIndex index.html
57    
58     LoadModule autoindex_module /usr/lib/apache2/modules/mod_autoindex.so
59 root 1.14 IndexOptions Charset=UTF-8 FancyIndexing FoldersFirst HTMLTable IgnoreCase SuppressColumnSorting NameWidth=* SuppressDescription SuppressIcon
60 root 1.1 HeaderName HEADER.html
61     ReadmeName FOOTER.html
62    
63 root 1.9 LoadModule status_module /usr/lib/apache2/modules/mod_status.so
64 root 1.12 #ExtendedStatus Off # ON is the default
65 root 1.9
66 root 1.1 LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
67 root 1.16 LoadModule proxy_wstunnel_module /usr/lib/apache2/modules/mod_proxy_wstunnel.so
68 root 1.1 #LoadModule proxy_fcgi_module /usr/lib/apache2/modules/mod_proxy_fcgi.so
69 root 1.2
70 root 1.1 LoadModule proxy_scgi_module /usr/lib/apache2/modules/mod_proxy_scgi.so
71 root 1.2 #ProxySCGIInternalRedirect Internal-Redirect apache 2.6 :/
72     ProxySCGIInternalRedirect On
73     ProxySCGISendfile On
74 root 1.18 ProxyTimeout 120
75 root 1.2
76 root 1.1 #LoadModule proxy_fdpass_module /usr/lib/apache2/modules/mod_proxy_fdpass.so
77     LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
78     LoadModule xml2enc_module /usr/lib/apache2/modules/mod_xml2enc.so
79 root 1.15 #LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so
80 root 1.1 LoadModule proxy_html_module /usr/lib/apache2/modules/mod_proxy_html.so
81    
82     LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so
83    
84 root 1.11 #<Directory />
85     # Options FollowSymLinks
86     # AllowOverride None
87     ## Require all denied
88     #</Directory>
89 root 1.1
90 root 1.11 #AccessFileName .htaccess
91 root 1.1
92     LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %{Host}i" schmorp
93     LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
94     LogFormat "%h %l %u %t \"%r\" %>s %O" common
95     LogFormat "%{Referer}i -> %U" referer
96     LogFormat "%{User-agent}i" agent
97    
98 root 1.10 CustomLog /var/log/frontend/access.log schmorp env=!suppress-logging
99 root 1.1 ErrorLog /var/log/frontend/error.log
100    
101 root 1.9 ListenBacklog 511
102 root 1.25
103     # use only one server normally, but allow concurrent servers running during reload
104     ServerLimit 4
105    
106 root 1.9 #MaxClients 100
107 root 1.23 MaxRequestWorkers 200
108 root 1.1 StartServers 1
109 root 1.23 ThreadsPerChild 200
110     ThreadLimit 200
111 root 1.1 MinSpareThreads 6
112 root 1.25 MaxSpareThreads 200
113 root 1.1
114     MaxMemFree 64
115 root 1.23 #ThreadStackSize 196608
116 root 1.1
117     PerlInterpStart 1
118     PerlInterpMax 1
119     PerlInterpMinSpare 0
120     PerlInterpMaxSpare 1
121 root 1.14 #PerlInterpScope Handler
122 root 1.1
123     Include proxy_html.conf
124    
125     # for debugging, enable reverse proxy url rewrite logging
126     #LogLevel warn proxy_html:trace3
127    
128     ProxyHTMLDocType "<!DOCTYPE html>" SGML
129     ProxyHTMLExtended on
130    
131     # mod_proxy_html uncompresses content, but doesn't recompress nor remove
132     # content-encoding header
133 root 1.17 #SetOutputFilter INFLATE;DEFLATE
134 root 1.1
135     <Perl>
136     use Apache2::ServerUtil ();
137     use Apache2::Const -compile => qw(OK);
138     use lib Apache2::ServerUtil::server_root;
139     use proxy_impl;
140     </Perl>
141    
142 root 1.13 PerlOptions None +Trans +MapToStorage +HeaderParser +Authz +Type
143 root 1.1
144     PerlTransHandler Apache2::Const::OK
145     PerlMapToStorageHandler proxy_impl::map_to_storage
146     PerlHeaderParserHandler Apache2::Const::OK
147 root 1.13
148     #PerlAuthenHandler Apache2::Const::OK
149     PerlAuthzHandler Apache2::Const::OK
150    
151     # always runs all
152 root 1.1 #PerlAccessHandler Apache2::Const::OK
153     #PerlTypeHandler Apache2::Const::OK
154     #PerlFixupHandler Apache2::Const::OK
155    
156     # handlers run anyway
157     # fixup mod_proxy checks for proxy: handler strings
158     # fixup mod_ssl annotates with lots of ssl, or updates for ssl optional
159 root 1.6 # type mod_mime mod_mime_magic do their job
160 root 1.1
161     # RUN_FIRST translate_name
162     # RUN_FIRST map_to_storage
163     # RUN_FIRST check_user_id
164     # RUN_ALL fixups
165     # RUN_FIRST type_checker
166     # RUN_ALL access_checker
167     # RUN_FIRST access_checker_ex
168     # RUN_FIRST auth_checker
169     # VOID insert_filter
170     # RUN_ALL create_request
171     # RUN_ALL post_perdir_config
172     # RUN_FIRST dirwalk_stat
173    
174     # mod_dir fixup
175     # mod_cgi response
176     # mod_autoindex response
177     # ap_process_request_internal() function in server/request.c
178    
179     <Location />
180     Options Indexes FollowSymLinks
181 root 1.11 # Require all granted
182 root 1.1 </Location>
183    
184 root 1.22 #LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so
185     #
186     #<FilesMatch "\.(ttf|woff|woff2)$">
187     # Header setifempty Access-Control-Allow-Origin "*"
188     # Header setifempty Cache-Comtrol "public, max-age=86400, immutable"
189     #</FilesMatch>
190 root 1.19
191 root 1.1 Include local.conf
192    
193     # vim: syntax=apache ts=8 sw=4
194