[c5c522c] | 1 | # Syn-3 apache configfile. |
---|
| 2 | # Please do not edit this file directorly, but |
---|
| 3 | # add a .conf file in /etc/apache2/conf.d/ |
---|
| 4 | # CHANGES IN THIS FILE WILL BE LOST AFTER AN UPDATE! |
---|
| 5 | |
---|
| 6 | # |
---|
| 7 | # Do not add a slash at the end of the directory path. If you point |
---|
| 8 | # ServerRoot at a non-local disk, be sure to point the LockFile directive |
---|
| 9 | # at a local disk. If you wish to share the same ServerRoot for multiple |
---|
| 10 | # httpd daemons, you will need to change at least LockFile and PidFile. |
---|
| 11 | # |
---|
| 12 | ServerRoot "/usr" |
---|
| 13 | |
---|
| 14 | # |
---|
| 15 | # Listen: Allows you to bind Apache to specific IP addresses and/or |
---|
| 16 | # ports, instead of the default. See also the <VirtualHost> |
---|
| 17 | # directive. |
---|
| 18 | # |
---|
| 19 | # Change this to Listen on specific IP addresses as shown below to |
---|
| 20 | # prevent Apache from glomming onto all bound IP addresses. |
---|
| 21 | # |
---|
| 22 | #Listen 12.34.56.78:80 |
---|
| 23 | Listen 80 |
---|
| 24 | |
---|
| 25 | # |
---|
| 26 | # Dynamic Shared Object (DSO) Support |
---|
| 27 | # |
---|
| 28 | # To be able to use the functionality of a module which was built as a DSO you |
---|
| 29 | # have to place corresponding `LoadModule' lines at this location so the |
---|
| 30 | # directives contained in it are actually available _before_ they are used. |
---|
| 31 | # Statically compiled modules (those listed by `httpd -l') do not need |
---|
| 32 | # to be loaded here. |
---|
| 33 | # |
---|
| 34 | # Example: |
---|
| 35 | # LoadModule foo_module modules/mod_foo.so |
---|
| 36 | # |
---|
| 37 | LoadModule authn_file_module lib/apache2/mod_authn_file.so |
---|
| 38 | LoadModule authn_dbm_module lib/apache2/mod_authn_dbm.so |
---|
| 39 | LoadModule authn_anon_module lib/apache2/mod_authn_anon.so |
---|
| 40 | LoadModule authn_dbd_module lib/apache2/mod_authn_dbd.so |
---|
| 41 | LoadModule authn_core_module lib/apache2/mod_authn_core.so |
---|
| 42 | LoadModule authz_host_module lib/apache2/mod_authz_host.so |
---|
| 43 | LoadModule authz_groupfile_module lib/apache2/mod_authz_groupfile.so |
---|
| 44 | LoadModule authz_user_module lib/apache2/mod_authz_user.so |
---|
| 45 | LoadModule authz_dbm_module lib/apache2/mod_authz_dbm.so |
---|
| 46 | LoadModule authz_owner_module lib/apache2/mod_authz_owner.so |
---|
| 47 | LoadModule authz_core_module lib/apache2/mod_authz_core.so |
---|
| 48 | LoadModule auth_basic_module lib/apache2/mod_auth_basic.so |
---|
| 49 | LoadModule auth_digest_module lib/apache2/mod_auth_digest.so |
---|
| 50 | LoadModule dbd_module lib/apache2/mod_dbd.so |
---|
| 51 | LoadModule dumpio_module lib/apache2/mod_dumpio.so |
---|
| 52 | LoadModule ext_filter_module lib/apache2/mod_ext_filter.so |
---|
| 53 | LoadModule include_module lib/apache2/mod_include.so |
---|
| 54 | LoadModule filter_module lib/apache2/mod_filter.so |
---|
| 55 | LoadModule deflate_module lib/apache2/mod_deflate.so |
---|
| 56 | LoadModule log_config_module lib/apache2/mod_log_config.so |
---|
| 57 | #LoadModule log_forensic_module lib/apache2/mod_log_forensic.so |
---|
| 58 | LoadModule logio_module lib/apache2/mod_logio.so |
---|
| 59 | LoadModule env_module lib/apache2/mod_env.so |
---|
| 60 | #LoadModule mime_magic_module lib/apache2/mod_mime_magic.so |
---|
| 61 | #LoadModule cern_meta_module lib/apache2/mod_cern_meta.so |
---|
| 62 | LoadModule expires_module lib/apache2/mod_expires.so |
---|
| 63 | LoadModule headers_module lib/apache2/mod_headers.so |
---|
| 64 | #LoadModule ident_module lib/apache2/mod_ident.so |
---|
| 65 | #LoadModule usertrack_module lib/apache2/mod_usertrack.so |
---|
| 66 | LoadModule unique_id_module lib/apache2/mod_unique_id.so |
---|
| 67 | LoadModule setenvif_module lib/apache2/mod_setenvif.so |
---|
| 68 | LoadModule version_module lib/apache2/mod_version.so |
---|
| 69 | LoadModule ssl_module lib/apache2/mod_ssl.so |
---|
| 70 | LoadModule mime_module lib/apache2/mod_mime.so |
---|
| 71 | LoadModule dav_module lib/apache2/mod_dav.so |
---|
| 72 | LoadModule status_module lib/apache2/mod_status.so |
---|
| 73 | LoadModule autoindex_module lib/apache2/mod_autoindex.so |
---|
| 74 | #LoadModule asis_module lib/apache2/mod_asis.so |
---|
| 75 | LoadModule info_module lib/apache2/mod_info.so |
---|
| 76 | LoadModule dav_fs_module lib/apache2/mod_dav_fs.so |
---|
| 77 | LoadModule vhost_alias_module lib/apache2/mod_vhost_alias.so |
---|
| 78 | LoadModule negotiation_module lib/apache2/mod_negotiation.so |
---|
| 79 | LoadModule dir_module lib/apache2/mod_dir.so |
---|
| 80 | #LoadModule imagemap_module lib/apache2/mod_imagemap.so |
---|
| 81 | LoadModule actions_module lib/apache2/mod_actions.so |
---|
| 82 | LoadModule speling_module lib/apache2/mod_speling.so |
---|
| 83 | #LoadModule userdir_module lib/apache2/mod_userdir.so |
---|
| 84 | LoadModule alias_module lib/apache2/mod_alias.so |
---|
| 85 | LoadModule rewrite_module lib/apache2/mod_rewrite.so |
---|
| 86 | |
---|
| 87 | |
---|
| 88 | #EDWIN:Gebruik cgid bij workerthread en cgi bij prefork! |
---|
| 89 | #LoadModule cgid_module lib/apache2/mod_cgid.so |
---|
| 90 | #LoadModule cgi_module lib/apache2/mod_cgi.so |
---|
| 91 | |
---|
| 92 | #apache2.4: |
---|
| 93 | LoadModule unixd_module lib/apache2/mod_unixd.so |
---|
| 94 | LoadModule access_compat_module lib/apache2/mod_access_compat.so |
---|
| 95 | LoadModule socache_shmcb_module lib/apache2/mod_socache_shmcb.so |
---|
| 96 | |
---|
| 97 | <IfModule !mpm_winnt_module> |
---|
| 98 | <IfModule !mpm_netware_module> |
---|
| 99 | # |
---|
| 100 | # If you wish httpd to run as a different user or group, you must run |
---|
| 101 | # httpd as root initially and it will switch. |
---|
| 102 | # |
---|
| 103 | # User/Group: The name (or #number) of the user/group to run httpd as. |
---|
| 104 | # It is usually good practice to create a dedicated user and group for |
---|
| 105 | # running httpd, as with most system services. |
---|
| 106 | # |
---|
| 107 | User nobody |
---|
| 108 | Group nogroup |
---|
| 109 | </IfModule> |
---|
| 110 | </IfModule> |
---|
| 111 | |
---|
| 112 | # 'Main' server configuration |
---|
| 113 | # |
---|
| 114 | # The directives in this section set up the values used by the 'main' |
---|
| 115 | # server, which responds to any requests that aren't handled by a |
---|
| 116 | # <VirtualHost> definition. These values also provide defaults for |
---|
| 117 | # any <VirtualHost> containers you may define later in the file. |
---|
| 118 | # |
---|
| 119 | # All of these directives may appear inside <VirtualHost> containers, |
---|
| 120 | # in which case these default settings will be overridden for the |
---|
| 121 | # virtual host being defined. |
---|
| 122 | # |
---|
| 123 | |
---|
| 124 | # |
---|
| 125 | # ServerAdmin: Your address, where problems with the server should be |
---|
| 126 | # e-mailed. This address appears on some server-generated pages, such |
---|
| 127 | # as error documents. e.g. admin@your-domain.com |
---|
| 128 | # |
---|
| 129 | ServerAdmin root |
---|
| 130 | |
---|
| 131 | # |
---|
| 132 | # ServerName gives the name and port that the server uses to identify itself. |
---|
| 133 | # This can often be determined automatically, but we recommend you specify |
---|
| 134 | # it explicitly to prevent problems during startup. |
---|
| 135 | # |
---|
| 136 | # If your host doesn't have a registered DNS name, enter its IP address here. |
---|
| 137 | # |
---|
| 138 | #ServerName www.example.com:80 |
---|
| 139 | |
---|
| 140 | # |
---|
| 141 | # DocumentRoot: The directory out of which you will serve your |
---|
| 142 | # documents. By default, all requests are taken from this directory, but |
---|
| 143 | # symbolic links and aliases may be used to point to other locations. |
---|
| 144 | # |
---|
| 145 | DocumentRoot "/var/www/htdocs" |
---|
| 146 | |
---|
| 147 | # |
---|
| 148 | # Each directory to which Apache has access can be configured with respect |
---|
| 149 | # to which services and features are allowed and/or disabled in that |
---|
| 150 | # directory (and its subdirectories). |
---|
| 151 | # |
---|
| 152 | # First, we configure the "default" to be a very restrictive set of |
---|
| 153 | # features. |
---|
| 154 | # |
---|
| 155 | <Directory /> |
---|
| 156 | Options FollowSymLinks |
---|
| 157 | AllowOverride None |
---|
| 158 | Order deny,allow |
---|
| 159 | Deny from all |
---|
| 160 | </Directory> |
---|
| 161 | |
---|
| 162 | # |
---|
| 163 | # Note that from this point forward you must specifically allow |
---|
| 164 | # particular features to be enabled - so if something's not working as |
---|
| 165 | # you might expect, make sure that you have specifically enabled it |
---|
| 166 | # below. |
---|
| 167 | # |
---|
| 168 | |
---|
| 169 | # |
---|
| 170 | # This should be changed to whatever you set DocumentRoot to. |
---|
| 171 | # |
---|
| 172 | <Directory "/var/www/htdocs"> |
---|
| 173 | # |
---|
| 174 | # Possible values for the Options directive are "None", "All", |
---|
| 175 | # or any combination of: |
---|
| 176 | # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews |
---|
| 177 | # |
---|
| 178 | # Note that "MultiViews" must be named *explicitly* --- "Options All" |
---|
| 179 | # doesn't give it to you. |
---|
| 180 | # |
---|
| 181 | # The Options directive is both complicated and important. Please see |
---|
| 182 | # http://httpd.apache.org/docs/2.2/mod/core.html#options |
---|
| 183 | # for more information. |
---|
| 184 | # |
---|
| 185 | Options Indexes FollowSymLinks |
---|
| 186 | |
---|
| 187 | # |
---|
| 188 | # AllowOverride controls what directives may be placed in .htaccess files. |
---|
| 189 | # It can be "All", "None", or any combination of the keywords: |
---|
| 190 | # Options FileInfo AuthConfig Limit |
---|
| 191 | # |
---|
| 192 | AllowOverride FileInfo AuthConfig Limit Indexes |
---|
| 193 | |
---|
| 194 | # |
---|
| 195 | # Controls who can get stuff from this server. |
---|
| 196 | # |
---|
| 197 | Order allow,deny |
---|
| 198 | Allow from all |
---|
| 199 | |
---|
| 200 | </Directory> |
---|
| 201 | |
---|
| 202 | # |
---|
| 203 | # DirectoryIndex: sets the file that Apache will serve if a directory |
---|
| 204 | # is requested. |
---|
| 205 | # |
---|
| 206 | <IfModule dir_module> |
---|
| 207 | DirectoryIndex index.html |
---|
| 208 | </IfModule> |
---|
| 209 | |
---|
| 210 | # |
---|
| 211 | # The following lines prevent .htaccess and .htpasswd files from being |
---|
| 212 | # viewed by Web clients. |
---|
| 213 | # |
---|
| 214 | <FilesMatch "^\.ht"> |
---|
| 215 | Order allow,deny |
---|
| 216 | Deny from all |
---|
| 217 | </FilesMatch> |
---|
| 218 | |
---|
| 219 | # |
---|
| 220 | # ErrorLog: The location of the error log file. |
---|
| 221 | # If you do not specify an ErrorLog directive within a <VirtualHost> |
---|
| 222 | # container, error messages relating to that virtual host will be |
---|
| 223 | # logged here. If you *do* define an error logfile for a <VirtualHost> |
---|
| 224 | # container, that host's errors will be logged there and not here. |
---|
| 225 | # |
---|
| 226 | ErrorLog /var/log/apache2/error_log |
---|
| 227 | |
---|
| 228 | # |
---|
| 229 | # LogLevel: Control the number of messages logged to the error_log. |
---|
| 230 | # Possible values include: debug, info, notice, warn, error, crit, |
---|
| 231 | # alert, emerg. |
---|
| 232 | # |
---|
| 233 | LogLevel warn |
---|
| 234 | |
---|
| 235 | <IfModule log_config_module> |
---|
| 236 | # |
---|
| 237 | # The following directives define some format nicknames for use with |
---|
| 238 | # a CustomLog directive (see below). |
---|
| 239 | # |
---|
| 240 | LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined |
---|
| 241 | LogFormat "%h %l %u %t \"%r\" %>s %b" common |
---|
| 242 | |
---|
| 243 | <IfModule logio_module> |
---|
| 244 | # You need to enable mod_logio.c to use %I and %O |
---|
| 245 | LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio |
---|
| 246 | </IfModule> |
---|
| 247 | |
---|
| 248 | # |
---|
| 249 | # The location and format of the access logfile (Common Logfile Format). |
---|
| 250 | # If you do not define any access logfiles within a <VirtualHost> |
---|
| 251 | # container, they will be logged here. Contrariwise, if you *do* |
---|
| 252 | # define per-<VirtualHost> access logfiles, transactions will be |
---|
| 253 | # logged therein and *not* in this file. |
---|
| 254 | # |
---|
| 255 | CustomLog /var/log/apache2/access_log common |
---|
| 256 | |
---|
| 257 | # |
---|
| 258 | # If you prefer a logfile with access, agent, and referer information |
---|
| 259 | # (Combined Logfile Format) you can use the following directive. |
---|
| 260 | # |
---|
| 261 | #CustomLog /var/log/apache2/access_log combined |
---|
| 262 | </IfModule> |
---|
| 263 | |
---|
| 264 | <IfModule alias_module> |
---|
| 265 | # |
---|
| 266 | # Redirect: Allows you to tell clients about documents that used to |
---|
| 267 | # exist in your server's namespace, but do not anymore. The client |
---|
| 268 | # will make a new request for the document at its new location. |
---|
| 269 | # Example: |
---|
| 270 | # Redirect permanent /foo http://www.example.com/bar |
---|
| 271 | |
---|
| 272 | # |
---|
| 273 | # Alias: Maps web paths into filesystem paths and is used to |
---|
| 274 | # access content that does not live under the DocumentRoot. |
---|
| 275 | # Example: |
---|
| 276 | # Alias /webpath /full/filesystem/path |
---|
| 277 | # |
---|
| 278 | # If you include a trailing / on /webpath then the server will |
---|
| 279 | # require it to be present in the URL. You will also likely |
---|
| 280 | # need to provide a <Directory> section to allow access to |
---|
| 281 | # the filesystem path. |
---|
| 282 | |
---|
| 283 | # |
---|
| 284 | # ScriptAlias: This controls which directories contain server scripts. |
---|
| 285 | # ScriptAliases are essentially the same as Aliases, except that |
---|
| 286 | # documents in the target directory are treated as applications and |
---|
| 287 | # run by the server when requested rather than as documents sent to the |
---|
| 288 | # client. The same rules about trailing "/" apply to ScriptAlias |
---|
| 289 | # directives as to Alias. |
---|
| 290 | # |
---|
| 291 | ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" |
---|
| 292 | |
---|
| 293 | </IfModule> |
---|
| 294 | |
---|
| 295 | <IfModule cgid_module> |
---|
| 296 | # |
---|
| 297 | # ScriptSock: On threaded servers, designate the path to the UNIX |
---|
| 298 | # socket used to communicate with the CGI daemon of mod_cgid. |
---|
| 299 | # |
---|
| 300 | #Scriptsock /var/run/cgisock |
---|
| 301 | </IfModule> |
---|
| 302 | |
---|
| 303 | # |
---|
| 304 | # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased |
---|
| 305 | # CGI directory exists, if you have that configured. |
---|
| 306 | # |
---|
| 307 | <Directory "/var/www/cgi-bin"> |
---|
| 308 | AllowOverride None |
---|
| 309 | Options None |
---|
| 310 | Order allow,deny |
---|
| 311 | Allow from all |
---|
| 312 | </Directory> |
---|
| 313 | |
---|
| 314 | |
---|
| 315 | <IfModule mime_module> |
---|
| 316 | # |
---|
| 317 | # TypesConfig points to the file containing the list of mappings from |
---|
| 318 | # filename extension to MIME-type. |
---|
| 319 | # |
---|
| 320 | TypesConfig /etc/apache2/mime.types |
---|
| 321 | |
---|
| 322 | # |
---|
| 323 | # AddType allows you to add to or override the MIME configuration |
---|
| 324 | # file specified in TypesConfig for specific file types. |
---|
| 325 | # |
---|
| 326 | #AddType application/x-gzip .tgz |
---|
| 327 | # |
---|
| 328 | # AddEncoding allows you to have certain browsers uncompress |
---|
| 329 | # information on the fly. Note: Not all browsers support this. |
---|
| 330 | # |
---|
| 331 | #AddEncoding x-compress .Z |
---|
| 332 | #AddEncoding x-gzip .gz .tgz |
---|
| 333 | # |
---|
| 334 | # If the AddEncoding directives above are commented-out, then you |
---|
| 335 | # probably should define those extensions to indicate media types: |
---|
| 336 | # |
---|
| 337 | AddType application/x-compress .Z |
---|
| 338 | AddType application/x-gzip .gz .tgz |
---|
| 339 | |
---|
| 340 | # |
---|
| 341 | # AddHandler allows you to map certain file extensions to "handlers": |
---|
| 342 | # actions unrelated to filetype. These can be either built into the server |
---|
| 343 | # or added with the Action directive (see below) |
---|
| 344 | # |
---|
| 345 | # To use CGI scripts outside of ScriptAliased directories: |
---|
| 346 | # (You will also need to add "ExecCGI" to the "Options" directive.) |
---|
| 347 | # |
---|
| 348 | #AddHandler cgi-script .cgi |
---|
| 349 | |
---|
| 350 | # For files that include their own HTTP headers: |
---|
| 351 | #AddHandler send-as-is asis |
---|
| 352 | |
---|
| 353 | # For server-parsed imagemap files: |
---|
| 354 | #AddHandler imap-file map |
---|
| 355 | |
---|
| 356 | # For type maps (negotiated resources): |
---|
| 357 | #AddHandler type-map var |
---|
| 358 | |
---|
| 359 | # |
---|
| 360 | # Filters allow you to process content before it is sent to the client. |
---|
| 361 | # |
---|
| 362 | # To parse .shtml files for server-side includes (SSI): |
---|
| 363 | # (You will also need to add "Includes" to the "Options" directive.) |
---|
| 364 | # |
---|
| 365 | #AddType text/html .shtml |
---|
| 366 | #AddOutputFilter INCLUDES .shtml |
---|
| 367 | </IfModule> |
---|
| 368 | |
---|
| 369 | # |
---|
| 370 | # The mod_mime_magic module allows the server to use various hints from the |
---|
| 371 | # contents of the file itself to determine its type. The MIMEMagicFile |
---|
| 372 | # directive tells the module where the hint definitions are located. |
---|
| 373 | # |
---|
| 374 | #MIMEMagicFile /etc/apache2/magic |
---|
| 375 | |
---|
| 376 | # |
---|
| 377 | # Customizable error responses come in three flavors: |
---|
| 378 | # 1) plain text 2) local redirects 3) external redirects |
---|
| 379 | # |
---|
| 380 | # Some examples: |
---|
| 381 | #ErrorDocument 500 "The server made a boo boo." |
---|
| 382 | #ErrorDocument 404 /missing.html |
---|
| 383 | #ErrorDocument 404 "/cgi-bin/missing_handler.pl" |
---|
| 384 | #ErrorDocument 402 http://www.example.com/subscription_info.html |
---|
| 385 | # |
---|
| 386 | |
---|
| 387 | # |
---|
| 388 | # EnableMMAP and EnableSendfile: On systems that support it, |
---|
| 389 | # memory-mapping or the sendfile syscall is used to deliver |
---|
| 390 | # files. This usually improves server performance, but must |
---|
| 391 | # be turned off when serving from networked-mounted |
---|
| 392 | # filesystems or if support for these functions is otherwise |
---|
| 393 | # broken on your system. |
---|
| 394 | # |
---|
| 395 | EnableMMAP on |
---|
| 396 | EnableSendfile on |
---|
| 397 | |
---|
| 398 | # Syn-3 LDAP caching settings |
---|
| 399 | # For now we use a small value of 10 seconds to prevent confusion and delays. |
---|
| 400 | # If performance issues arrise Syn-3 dev. team will issue an update with a higher value. |
---|
| 401 | LoadModule ldap_module lib/apache2/mod_ldap.so |
---|
| 402 | LDAPCacheTTL 10 |
---|
| 403 | LDAPOpCacheTTL 10 |
---|
| 404 | |
---|
| 405 | |
---|
| 406 | # Supplemental configuration |
---|
| 407 | # All configs in conf.d will be included. |
---|
| 408 | # Look overthere for more info, and add your own configuration there as well. |
---|
| 409 | Include /etc/apache2/conf.d/*.conf |
---|
| 410 | |
---|