… | |
… | |
4 | |
4 | |
5 | #ServerRoot "/dev/null" |
5 | #ServerRoot "/dev/null" |
6 | Mutex pthread default |
6 | Mutex pthread default |
7 | PidFile /run/frontend.pid |
7 | PidFile /run/frontend.pid |
8 | |
8 | |
9 | Timeout 60 |
9 | Timeout 30 |
10 | KeepAlive On |
10 | KeepAlive On |
11 | MaxKeepAliveRequests 100 |
11 | MaxKeepAliveRequests 100 |
12 | KeepAliveTimeout 30 |
12 | KeepAliveTimeout 2 |
13 | |
13 | |
|
|
14 | #TODO: should be it's own user id |
14 | User www-data |
15 | User www-data |
15 | Group www-data |
16 | Group www-data |
16 | |
17 | |
17 | HostnameLookups Off |
18 | GracefulShutdownTimeout 8 |
18 | |
19 | |
19 | AddDefaultCharset UTF-8 |
20 | AddDefaultCharset UTF-8 |
|
|
21 | # EnableSendfile On |
|
|
22 | |
|
|
23 | # to be sure, spell out some defaults |
|
|
24 | HostnameLookups Off |
|
|
25 | AllowEncodedSlashes 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 | # |
27 | LogLevel warn |
33 | LogLevel warn |
28 | |
34 | |
|
|
35 | # event segfaults, hangs, creates unexplained error messages... |
29 | LoadModule mpm_event_module /usr/lib/apache2/modules/mod_mpm_event.so |
36 | #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 | #LoadModule mpm_prefork_module /usr/lib/apache2/modules/mod_mpm_prefork.so |
30 | LoadModule authz_core_module /usr/lib/apache2/modules/mod_authz_core.so |
39 | LoadModule authz_core_module /usr/lib/apache2/modules/mod_authz_core.so |
31 | LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.so |
40 | LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.so |
32 | |
41 | |
33 | LoadModule mime_module /usr/lib/apache2/modules/mod_mime.so |
42 | LoadModule mime_module /usr/lib/apache2/modules/mod_mime.so |
34 | TypesConfig /etc/mime.types |
43 | TypesConfig /etc/mime.types |
35 | LoadModule mime_magic_module /usr/lib/apache2/modules/mod_magic_mime.so |
44 | LoadModule mime_magic_module /usr/lib/apache2/modules/mod_mime_magic.so |
|
|
45 | MIMEMagicFile /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 | |
41 | LoadModule autoindex_module /usr/lib/apache2/modules/mod_autoindex.so |
51 | LoadModule autoindex_module /usr/lib/apache2/modules/mod_autoindex.so |
42 | IndexOptions Charset=UTF-8 FancyIndexing FoldersFirst HTMLTable SuppressColumnSorting |
52 | IndexOptions Charset=UTF-8 FancyIndexing FoldersFirst HTMLTable IgnoreCase SuppressColumnSorting NameWidth=* SuppressDescription SuppressIcon |
43 | HeaderName HEADER.html |
53 | HeaderName HEADER.html |
44 | ReadmeName FOOTER.html |
54 | ReadmeName FOOTER.html |
|
|
55 | |
|
|
56 | LoadModule status_module /usr/lib/apache2/modules/mod_status.so |
|
|
57 | #ExtendedStatus Off # ON is the default |
45 | |
58 | |
46 | LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so |
59 | LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so |
47 | #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 |
48 | |
61 | |
49 | LoadModule proxy_scgi_module /usr/lib/apache2/modules/mod_proxy_scgi.so |
62 | LoadModule proxy_scgi_module /usr/lib/apache2/modules/mod_proxy_scgi.so |
… | |
… | |
57 | LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so |
70 | LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so |
58 | LoadModule proxy_html_module /usr/lib/apache2/modules/mod_proxy_html.so |
71 | LoadModule proxy_html_module /usr/lib/apache2/modules/mod_proxy_html.so |
59 | |
72 | |
60 | LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so |
73 | LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so |
61 | |
74 | |
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 /> |
75 | #<Directory /> |
69 | Options FollowSymLinks |
76 | # Options FollowSymLinks |
70 | AllowOverride None |
77 | # AllowOverride None |
71 | Require all denied |
78 | ## Require all denied |
72 | </Directory> |
79 | #</Directory> |
73 | |
80 | |
74 | <Directory /var/www/> |
|
|
75 | Options Indexes FollowSymLinks |
|
|
76 | Require all granted |
|
|
77 | </Directory> |
|
|
78 | |
|
|
79 | AccessFileName .htaccess |
81 | #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 | |
82 | |
89 | LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %{Host}i" schmorp |
83 | LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %{Host}i" schmorp |
90 | LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined |
84 | LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined |
91 | LogFormat "%h %l %u %t \"%r\" %>s %O" common |
85 | LogFormat "%h %l %u %t \"%r\" %>s %O" common |
92 | LogFormat "%{Referer}i -> %U" referer |
86 | LogFormat "%{Referer}i -> %U" referer |
93 | LogFormat "%{User-agent}i" agent |
87 | LogFormat "%{User-agent}i" agent |
94 | |
88 | |
95 | CustomLog /var/log/frontend/access.log schmorp |
89 | CustomLog /var/log/frontend/access.log schmorp env=!suppress-logging |
96 | ErrorLog /var/log/frontend/error.log |
90 | ErrorLog /var/log/frontend/error.log |
97 | |
91 | |
|
|
92 | ListenBacklog 511 |
98 | ServerLimit 1 |
93 | ServerLimit 1 |
99 | MaxClients 100 |
94 | #MaxClients 100 |
100 | MaxRequestWorkers 100 |
95 | MaxRequestWorkers 100 |
101 | StartServers 1 |
96 | StartServers 1 |
102 | ThreadsPerChild 100 |
97 | ThreadsPerChild 100 |
103 | ThreadLimit 200 |
98 | ThreadLimit 100 |
104 | MinSpareThreads 6 |
99 | MinSpareThreads 6 |
105 | MaxSpareThreads 16 |
100 | MaxSpareThreads 100 |
106 | |
101 | |
107 | MaxMemFree 64 |
102 | MaxMemFree 64 |
108 | #ThreadStackSize 65536 # basically gets ignored |
103 | ThreadStackSize 196608 |
109 | |
104 | |
110 | PerlInterpStart 1 |
105 | PerlInterpStart 1 |
111 | PerlInterpMax 1 |
106 | PerlInterpMax 1 |
112 | PerlInterpMinSpare 0 |
107 | PerlInterpMinSpare 0 |
113 | PerlInterpMaxSpare 1 |
108 | PerlInterpMaxSpare 1 |
114 | PerlInterpScope Handler |
109 | #PerlInterpScope Handler |
115 | |
110 | |
116 | Include proxy_html.conf |
111 | Include proxy_html.conf |
117 | |
112 | |
118 | # for debugging, enable reverse proxy url rewrite logging |
113 | # for debugging, enable reverse proxy url rewrite logging |
119 | #LogLevel warn proxy_html:trace3 |
114 | #LogLevel warn proxy_html:trace3 |
… | |
… | |
130 | use Apache2::Const -compile => qw(OK); |
125 | use Apache2::Const -compile => qw(OK); |
131 | use lib Apache2::ServerUtil::server_root; |
126 | use lib Apache2::ServerUtil::server_root; |
132 | use proxy_impl; |
127 | use proxy_impl; |
133 | </Perl> |
128 | </Perl> |
134 | |
129 | |
135 | PerlOptions None +Trans +MapToStorage +HeaderParser +Authen +Authz +Type |
130 | PerlOptions None +Trans +MapToStorage +HeaderParser +Authz +Type |
136 | |
131 | |
137 | PerlTransHandler Apache2::Const::OK |
132 | PerlTransHandler Apache2::Const::OK |
138 | PerlMapToStorageHandler proxy_impl::map_to_storage |
133 | PerlMapToStorageHandler proxy_impl::map_to_storage |
139 | PerlHeaderParserHandler Apache2::Const::OK |
134 | PerlHeaderParserHandler Apache2::Const::OK |
|
|
135 | |
|
|
136 | #PerlAuthenHandler Apache2::Const::OK |
|
|
137 | PerlAuthzHandler Apache2::Const::OK |
|
|
138 | |
|
|
139 | # always runs all |
140 | #PerlAccessHandler Apache2::Const::OK |
140 | #PerlAccessHandler Apache2::Const::OK |
141 | PerlAuthenHandler Apache2::Const::OK |
|
|
142 | PerlAuthzHandler Apache2::Const::OK |
|
|
143 | #PerlTypeHandler Apache2::Const::OK |
141 | #PerlTypeHandler Apache2::Const::OK |
144 | #PerlFixupHandler Apache2::Const::OK |
142 | #PerlFixupHandler Apache2::Const::OK |
145 | |
143 | |
146 | # handlers run anyway |
144 | # handlers run anyway |
147 | # fixup mod_proxy checks for proxy: handler strings |
145 | # fixup mod_proxy checks for proxy: handler strings |
… | |
… | |
166 | # mod_autoindex response |
164 | # mod_autoindex response |
167 | # ap_process_request_internal() function in server/request.c |
165 | # ap_process_request_internal() function in server/request.c |
168 | |
166 | |
169 | <Location /> |
167 | <Location /> |
170 | Options Indexes FollowSymLinks |
168 | Options Indexes FollowSymLinks |
171 | Require all granted |
169 | # Require all granted |
172 | </Location> |
170 | </Location> |
173 | |
171 | |
174 | Include local.conf |
172 | Include local.conf |
175 | |
173 | |
176 | # vim: syntax=apache ts=8 sw=4 |
174 | # vim: syntax=apache ts=8 sw=4 |