forked from pool/apache2
7a70b52ac1
- Update to 2.4.61 *) SECURITY: CVE-2024-39884: Apache HTTP Server: source code disclosure with handlers configured via AddType (cve.mitre.org) [boo#1227353] A regression in the core of Apache HTTP Server 2.4.60 ignores some use of the legacy content-type based configuration of handlers. "AddType" and similar configuration, under some circumstances where files are requested indirectly, result in source code disclosure of local content. For example, PHP scripts may be served instead of interpreted. Users are recommended to upgrade to version 2.4.61, which fixes this issue. - Update to 2.4.60 *) SECURITY: CVE-2024-39573: Apache HTTP Server: mod_rewrite proxy handler substitution (cve.mitre.org) [boo#1227271] Potential SSRF in mod_rewrite in Apache HTTP Server 2.4.59 and earlier allows an attacker to cause unsafe RewriteRules to unexpectedly setup URL's to be handled by mod_proxy. Credits: Orange Tsai (@orange_8361) from DEVCORE *) SECURITY: CVE-2024-38477: Apache HTTP Server: Crash resulting in Denial of Service in mod_proxy via a malicious request (cve.mitre.org) [boo#1227270] null pointer dereference in mod_proxy in Apache HTTP Server 2.4.59 and earlier allows an attacker to crash the server via a malicious request. Credits: Orange Tsai (@orange_8361) from DEVCORE *) SECURITY: CVE-2024-38476: Apache HTTP Server may use exploitable/malicious backend application output to run local handlers via internal redirect (cve.mitre.org) [boo#1227269] Vulnerability in core of Apache HTTP Server 2.4.59 and earlier are vulnerably to information disclosure, SSRF or local script execution via backend applications whose response headers are malicious or exploitable. Note: Some legacy uses of the 'AddType' directive to connect a request to a handler must be ported to 'AddHandler' after this fix. Credits: Orange Tsai (@orange_8361) from DEVCORE *) SECURITY: CVE-2024-38475: Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path. (cve.mitre.org) [boo#1227268] Improper escaping of output in mod_rewrite in Apache HTTP Server 2.4.59 and earlier allows an attacker to map URLs to filesystem locations that are permitted to be served by the server but are not intentionally/directly reachable by any URL, resulting in code execution or source code disclosure. Substitutions in server context that use a backreferences or variables as the first segment of the substitution are affected. Some unsafe RewiteRules will be broken by this change and the rewrite flag "UnsafePrefixStat" can be used to opt back in once ensuring the substitution is appropriately constrained. Credits: Orange Tsai (@orange_8361) from DEVCORE *) SECURITY: CVE-2024-38474: Apache HTTP Server weakness with encoded question marks in backreferences (cve.mitre.org) [boo#1227278] Substitution encoding issue in mod_rewrite in Apache HTTP Server 2.4.59 and earlier allows attacker to execute scripts in directories permitted by the configuration but not directly reachable by any URL or source disclosure of scripts meant to only to be executed as CGI. Note: Some RewriteRules that capture and substitute unsafely will now fail unless rewrite flag "UnsafeAllow3F" is specified. Credits: Orange Tsai (@orange_8361) from DEVCORE *) SECURITY: CVE-2024-38473: Apache HTTP Server proxy encoding problem (cve.mitre.org) [boo#1227276] Encoding problem in mod_proxy in Apache HTTP Server 2.4.59 and earlier allows request URLs with incorrect encoding to be sent to backend services, potentially bypassing authentication via crafted requests. Credits: Orange Tsai (@orange_8361) from DEVCORE *) SECURITY: CVE-2024-38472: Apache HTTP Server on WIndows UNC SSRF (cve.mitre.org) [boo#1227267] SSRF in Apache HTTP Server on Windows allows to potentially leak NTML hashes to a malicious server via SSRF and malicious requests or content Note: Existing configurations that access UNC paths will have to configure new directive "UNCList" to allow access during request processing. Credits: Orange Tsai (@orange_8361) from DEVCORE *) SECURITY: CVE-2024-36387: Apache HTTP Server: DoS by Null pointer in websocket over HTTP/2 (cve.mitre.org) [boo#1227272] Serving WebSocket protocol upgrades over a HTTP/2 connection could result in a Null Pointer dereference, leading to a crash of the server process, degrading performance. Credits: Marc Stern (<marc.stern AT approach-cyber.com>) OBS-URL: https://build.opensuse.org/request/show/1185778 OBS-URL: https://build.opensuse.org/package/show/Apache/apache2?expand=0&rev=704
153 lines
6.1 KiB
Plaintext
153 lines
6.1 KiB
Plaintext
##
|
|
## Server-Pool Size Regulation (MPM specific)
|
|
##
|
|
|
|
# the MPM (multiprocessing module) is not a dynamically loadable module in the
|
|
# sense of other modules. It is a compile time decision which one is used. We
|
|
# provide different apache2 MPM packages, containing different httpd binaries
|
|
# compiled with the available MPMs. See APACHE_MPM in /etc/sysconfig/apache2.
|
|
|
|
# prefork MPM
|
|
<IfModule prefork.c>
|
|
# number of server processes to start
|
|
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#startservers
|
|
StartServers 5
|
|
# minimum number of server processes which are kept spare
|
|
# https://httpd.apache.org/docs/2.4/mod/prefork.html#minspareservers
|
|
MinSpareServers 5
|
|
# maximum number of server processes which are kept spare
|
|
# https://httpd.apache.org/docs/2.4/mod/prefork.html#maxspareservers
|
|
MaxSpareServers 10
|
|
# highest possible MaxRequestWorkers setting for the lifetime of the Apache process.
|
|
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#serverlimit
|
|
ServerLimit 256
|
|
# maximum number of server processes allowed to start (formerly MaxClients)
|
|
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#maxrequestworkers
|
|
MaxRequestWorkers 256
|
|
# maximum number of requests a server process serves
|
|
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#maxconnectionsperchild
|
|
MaxConnectionsPerChild 10000
|
|
</IfModule>
|
|
|
|
# worker MPM
|
|
<IfModule worker.c>
|
|
# initial number of server processes to start
|
|
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#startservers
|
|
StartServers 3
|
|
# minimum number of worker threads which are kept spare
|
|
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#minsparethreads
|
|
MinSpareThreads 25
|
|
# maximum number of worker threads which are kept spare
|
|
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#maxsparethreads
|
|
MaxSpareThreads 75
|
|
# upper limit on the configurable number of threads per child process
|
|
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#threadlimit
|
|
ThreadLimit 64
|
|
# maximum number of simultaneous client connections (formerly MaxClients)
|
|
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#maxrequestworkers
|
|
MaxRequestWorkers 256
|
|
# number of worker threads created by each child process
|
|
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#threadsperchild
|
|
ThreadsPerChild 25
|
|
# maximum number of requests a server process serves
|
|
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#maxconnectionsperchild
|
|
MaxConnectionsPerChild 10000
|
|
</IfModule>
|
|
|
|
# event MPM
|
|
<IfModule event.c>
|
|
# initial number of server processes to start
|
|
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#startservers
|
|
StartServers 3
|
|
# minimum number of worker threads which are kept spare
|
|
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#minsparethreads
|
|
MinSpareThreads 25
|
|
# maximum number of worker threads which are kept spare
|
|
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#maxsparethreads
|
|
MaxSpareThreads 75
|
|
# upper limit on the configurable number of threads per child process
|
|
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#threadlimit
|
|
ThreadLimit 64
|
|
# maximum number of simultaneous client connections (formerly MaxClients)
|
|
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#maxrequestworkers
|
|
MaxRequestWorkers 256
|
|
# number of worker threads created by each child process
|
|
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#threadsperchild
|
|
ThreadsPerChild 25
|
|
# maximum number of requests a server process serves
|
|
# https://httpd.apache.org/docs/2.4/mod/mpm_common.html#maxconnectionsperchild
|
|
MaxConnectionsPerChild 10000
|
|
# limit concurrent connections per process
|
|
# https://httpd.apache.org/docs/2.4/mod/event.html#asyncrequestworkerfactor
|
|
AsyncRequestWorkerFactor 2
|
|
</IfModule>
|
|
|
|
#
|
|
# KeepAlive: Whether or not to allow persistent connections (more than
|
|
# one request per connection). Set to "Off" to deactivate.
|
|
#
|
|
KeepAlive On
|
|
|
|
#
|
|
# MaxKeepAliveRequests: The maximum number of requests to allow
|
|
# during a persistent connection. Set to 0 to allow an unlimited amount.
|
|
# We recommend you leave this number high, for maximum performance.
|
|
#
|
|
MaxKeepAliveRequests 100
|
|
|
|
#
|
|
# KeepAliveTimeout: Number of seconds to wait for the next request from the
|
|
# same client on the same connection.
|
|
#
|
|
KeepAliveTimeout 15
|
|
|
|
#
|
|
# MaxRanges: Maximum number of Ranges in a request before
|
|
# returning the entire resource, or one of the special
|
|
# values 'default', 'none' or 'unlimited'.
|
|
# Default setting is to accept 200 Ranges.
|
|
#MaxRanges unlimited
|
|
|
|
#
|
|
# EnableMMAP: Control whether memory-mapping is used to deliver
|
|
# files (assuming that the underlying OS supports it).
|
|
# The default is on; turn this off if you serve from NFS-mounted
|
|
# filesystems. On some systems, turning it off (regardless of
|
|
# filesystem) can improve performance; for details, please see
|
|
# https://httpd.apache.org/docs/2.4/mod/core.html#enablemmap
|
|
#
|
|
#EnableMMAP off
|
|
|
|
#
|
|
# EnableSendfile: Control whether the sendfile kernel support is
|
|
# used to deliver files (assuming that the OS supports it).
|
|
# The default is on; turn this off if you serve from NFS-mounted
|
|
# filesystems. Please see
|
|
# https://httpd.apache.org/docs/2.4/mod/core.html#enablesendfile
|
|
#
|
|
EnableSendfile on
|
|
|
|
<IfModule mod_setenvif.c>
|
|
#
|
|
# The following directives modify normal HTTP response behavior to
|
|
# handle known problems with browser implementations.
|
|
#
|
|
BrowserMatch "Mozilla/2" nokeepalive
|
|
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
|
|
BrowserMatch "RealPlayer 4\.0" force-response-1.0
|
|
BrowserMatch "Java/1\.0" force-response-1.0
|
|
BrowserMatch "JDK/1\.0" force-response-1.0
|
|
|
|
#
|
|
# The following directive disables redirects on non-GET requests for
|
|
# a directory that does not include the trailing slash. This fixes a
|
|
# problem with Microsoft WebFolders which does not appropriately handle
|
|
# redirects for folders with DAV methods.
|
|
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
|
|
#
|
|
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
|
|
BrowserMatch "^WebDrive" redirect-carefully
|
|
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
|
|
BrowserMatch "^gnome-vfs" redirect-carefully
|
|
</IfModule>
|