… | |
… | |
42 | LoadModule mime_module /usr/lib/apache2/modules/mod_mime.so |
42 | LoadModule mime_module /usr/lib/apache2/modules/mod_mime.so |
43 | TypesConfig /etc/mime.types |
43 | TypesConfig /etc/mime.types |
44 | LoadModule mime_magic_module /usr/lib/apache2/modules/mod_mime_magic.so |
44 | LoadModule mime_magic_module /usr/lib/apache2/modules/mod_mime_magic.so |
45 | MIMEMagicFile /etc/apache2/magic |
45 | MIMEMagicFile /etc/apache2/magic |
46 | |
46 | |
47 | # must not be loaded |
47 | # must NOT be loaded |
48 | #LoadModule dir_module /usr/lib/apache2/modules/mod_dir.so |
48 | #LoadModule dir_module /usr/lib/apache2/modules/mod_dir.so |
49 | #DirectoryIndex index.html |
49 | #DirectoryIndex index.html |
50 | |
50 | |
51 | LoadModule autoindex_module /usr/lib/apache2/modules/mod_autoindex.so |
51 | LoadModule autoindex_module /usr/lib/apache2/modules/mod_autoindex.so |
52 | IndexOptions Charset=UTF-8 FancyIndexing FoldersFirst HTMLTable SuppressColumnSorting |
52 | IndexOptions Charset=UTF-8 FancyIndexing FoldersFirst HTMLTable IgnoreCase SuppressColumnSorting NameWidth=* SuppressDescription SuppressIcon |
53 | HeaderName HEADER.html |
53 | HeaderName HEADER.html |
54 | ReadmeName FOOTER.html |
54 | ReadmeName FOOTER.html |
55 | |
55 | |
56 | LoadModule status_module /usr/lib/apache2/modules/mod_status.so |
56 | LoadModule status_module /usr/lib/apache2/modules/mod_status.so |
|
|
57 | #ExtendedStatus Off # ON is the default |
57 | |
58 | |
58 | LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so |
59 | LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so |
59 | #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 |
60 | |
61 | |
61 | 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 |
… | |
… | |
69 | LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so |
70 | LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so |
70 | 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 |
71 | |
72 | |
72 | LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so |
73 | LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so |
73 | |
74 | |
74 | # Sets the default security model of the Apache2 HTTPD server. It does |
|
|
75 | # not allow access to the root filesystem outside of /usr/share and /var/www. |
|
|
76 | # The former is used by web applications packaged in Debian, |
|
|
77 | # the latter may be used for local directories served by the web server. If |
|
|
78 | # your system is serving content from a sub-directory in /srv you must allow |
|
|
79 | # access here, or in any related virtual host. |
|
|
80 | <Directory /> |
75 | #<Directory /> |
81 | Options FollowSymLinks |
76 | # Options FollowSymLinks |
82 | AllowOverride None |
77 | # AllowOverride None |
83 | Require all denied |
78 | ## Require all denied |
84 | </Directory> |
79 | #</Directory> |
85 | |
80 | |
86 | <Directory /var/www/> |
|
|
87 | Options Indexes FollowSymLinks |
|
|
88 | Require all granted |
|
|
89 | </Directory> |
|
|
90 | |
|
|
91 | AccessFileName .htaccess |
81 | #AccessFileName .htaccess |
92 | |
|
|
93 | # |
|
|
94 | # The following lines prevent .htaccess and .htpasswd files from being |
|
|
95 | # viewed by Web clients. |
|
|
96 | # |
|
|
97 | <FilesMatch "^\.ht"> |
|
|
98 | Require all denied |
|
|
99 | </FilesMatch> |
|
|
100 | |
82 | |
101 | 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 |
102 | 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 |
103 | LogFormat "%h %l %u %t \"%r\" %>s %O" common |
85 | LogFormat "%h %l %u %t \"%r\" %>s %O" common |
104 | LogFormat "%{Referer}i -> %U" referer |
86 | LogFormat "%{Referer}i -> %U" referer |
105 | LogFormat "%{User-agent}i" agent |
87 | LogFormat "%{User-agent}i" agent |
106 | |
88 | |
107 | CustomLog /var/log/frontend/access.log schmorp |
89 | CustomLog /var/log/frontend/access.log schmorp env=!suppress-logging |
108 | ErrorLog /var/log/frontend/error.log |
90 | ErrorLog /var/log/frontend/error.log |
109 | |
91 | |
110 | ListenBacklog 511 |
92 | ListenBacklog 511 |
111 | ServerLimit 1 |
93 | ServerLimit 1 |
112 | #MaxClients 100 |
94 | #MaxClients 100 |
… | |
… | |
122 | |
104 | |
123 | PerlInterpStart 1 |
105 | PerlInterpStart 1 |
124 | PerlInterpMax 1 |
106 | PerlInterpMax 1 |
125 | PerlInterpMinSpare 0 |
107 | PerlInterpMinSpare 0 |
126 | PerlInterpMaxSpare 1 |
108 | PerlInterpMaxSpare 1 |
127 | PerlInterpScope Handler |
109 | #PerlInterpScope Handler |
128 | |
110 | |
129 | Include proxy_html.conf |
111 | Include proxy_html.conf |
130 | |
112 | |
131 | # for debugging, enable reverse proxy url rewrite logging |
113 | # for debugging, enable reverse proxy url rewrite logging |
132 | #LogLevel warn proxy_html:trace3 |
114 | #LogLevel warn proxy_html:trace3 |
… | |
… | |
143 | use Apache2::Const -compile => qw(OK); |
125 | use Apache2::Const -compile => qw(OK); |
144 | use lib Apache2::ServerUtil::server_root; |
126 | use lib Apache2::ServerUtil::server_root; |
145 | use proxy_impl; |
127 | use proxy_impl; |
146 | </Perl> |
128 | </Perl> |
147 | |
129 | |
148 | PerlOptions None +Trans +MapToStorage +HeaderParser +Authen +Authz +Type |
130 | PerlOptions None +Trans +MapToStorage +HeaderParser +Authz +Type |
149 | |
131 | |
150 | PerlTransHandler Apache2::Const::OK |
132 | PerlTransHandler Apache2::Const::OK |
151 | PerlMapToStorageHandler proxy_impl::map_to_storage |
133 | PerlMapToStorageHandler proxy_impl::map_to_storage |
152 | 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 |
153 | #PerlAccessHandler Apache2::Const::OK |
140 | #PerlAccessHandler Apache2::Const::OK |
154 | PerlAuthenHandler Apache2::Const::OK |
|
|
155 | PerlAuthzHandler Apache2::Const::OK |
|
|
156 | #PerlTypeHandler Apache2::Const::OK |
141 | #PerlTypeHandler Apache2::Const::OK |
157 | #PerlFixupHandler Apache2::Const::OK |
142 | #PerlFixupHandler Apache2::Const::OK |
158 | |
143 | |
159 | # handlers run anyway |
144 | # handlers run anyway |
160 | # fixup mod_proxy checks for proxy: handler strings |
145 | # fixup mod_proxy checks for proxy: handler strings |
… | |
… | |
179 | # mod_autoindex response |
164 | # mod_autoindex response |
180 | # ap_process_request_internal() function in server/request.c |
165 | # ap_process_request_internal() function in server/request.c |
181 | |
166 | |
182 | <Location /> |
167 | <Location /> |
183 | Options Indexes FollowSymLinks |
168 | Options Indexes FollowSymLinks |
184 | Require all granted |
169 | # Require all granted |
185 | </Location> |
170 | </Location> |
186 | |
171 | |
187 | Include local.conf |
172 | Include local.conf |
188 | |
173 | |
189 | # vim: syntax=apache ts=8 sw=4 |
174 | # vim: syntax=apache ts=8 sw=4 |