… | |
… | |
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 SuppressColumnSorting |
… | |
… | |
69 | LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so |
69 | LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so |
70 | LoadModule proxy_html_module /usr/lib/apache2/modules/mod_proxy_html.so |
70 | LoadModule proxy_html_module /usr/lib/apache2/modules/mod_proxy_html.so |
71 | |
71 | |
72 | LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so |
72 | LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so |
73 | |
73 | |
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 /> |
74 | #<Directory /> |
81 | Options FollowSymLinks |
75 | # Options FollowSymLinks |
82 | AllowOverride None |
76 | # AllowOverride None |
83 | Require all denied |
77 | ## Require all denied |
84 | </Directory> |
78 | #</Directory> |
85 | |
79 | |
86 | <Directory /var/www/> |
|
|
87 | Options Indexes FollowSymLinks |
|
|
88 | Require all granted |
|
|
89 | </Directory> |
|
|
90 | |
|
|
91 | AccessFileName .htaccess |
80 | #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 | |
81 | |
101 | LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %{Host}i" schmorp |
82 | 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 |
83 | LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined |
103 | LogFormat "%h %l %u %t \"%r\" %>s %O" common |
84 | LogFormat "%h %l %u %t \"%r\" %>s %O" common |
104 | LogFormat "%{Referer}i -> %U" referer |
85 | LogFormat "%{Referer}i -> %U" referer |
… | |
… | |
179 | # mod_autoindex response |
160 | # mod_autoindex response |
180 | # ap_process_request_internal() function in server/request.c |
161 | # ap_process_request_internal() function in server/request.c |
181 | |
162 | |
182 | <Location /> |
163 | <Location /> |
183 | Options Indexes FollowSymLinks |
164 | Options Indexes FollowSymLinks |
184 | Require all granted |
165 | # Require all granted |
185 | </Location> |
166 | </Location> |
186 | |
167 | |
187 | Include local.conf |
168 | Include local.conf |
188 | |
169 | |
189 | # vim: syntax=apache ts=8 sw=4 |
170 | # vim: syntax=apache ts=8 sw=4 |