]> git.ipfire.org Git - thirdparty/apache/httpd.git/log
thirdparty/apache/httpd.git
12 months agoRemove awk dependency when building using CMake. Before this awk was required
Ivan Zhakov [Sat, 20 Jul 2024 16:18:18 +0000 (16:18 +0000)] 
Remove awk dependency when building using CMake. Before this awk was required
for -DWITH_MODULES option.

* build/build-modules-c.cmake:
  (generate_builtin_modules_c): Function to generate modules.c.

* CMakeLists.txt
  (): Use generate_builtin_modules_c() instead of `awk -f build/build-modules-c.awk`
  to generate modules.c file.

* README.cmake:
  (Prerequisites, How to build): Do not mention awk as prerequisite.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919413 13f79535-47bb-0310-9956-ffa450edef68

12 months ago* .github/workflows/windows.yml: Enable VCPKG artifacts caching.
Ivan Zhakov [Sat, 20 Jul 2024 16:09:24 +0000 (16:09 +0000)] 
* .github/workflows/windows.yml: Enable VCPKG artifacts caching.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919411 13f79535-47bb-0310-9956-ffa450edef68

12 months agofr doc rebuild.
Lucien Gentis [Sat, 20 Jul 2024 13:42:50 +0000 (13:42 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919405 13f79535-47bb-0310-9956-ffa450edef68

12 months agofr doc XML files updates.
Lucien Gentis [Sat, 20 Jul 2024 13:41:51 +0000 (13:41 +0000)] 
fr doc XML files updates.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919404 13f79535-47bb-0310-9956-ffa450edef68

12 months ago* build/build-modules-c.awk: Add AP_DECLARE_DATA to ap_prelinked_modules,
Ivan Zhakov [Sat, 20 Jul 2024 13:36:20 +0000 (13:36 +0000)] 
* build/build-modules-c.awk: Add AP_DECLARE_DATA to ap_prelinked_modules,
  ap_prelinked_modules_symbols and ap_preloaded_modules to match declaration
  in ap_config.h. It doesn't change behavior because AP_DECLARE_DATA is
  empty on non-Windows platform.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919403 13f79535-47bb-0310-9956-ffa450edef68

12 months ago* .github/workflows/windows.yml: Add quotes for -DAPR_LIBRARIES argument.
Ivan Zhakov [Sat, 20 Jul 2024 13:10:14 +0000 (13:10 +0000)] 
* .github/workflows/windows.yml: Add quotes for -DAPR_LIBRARIES argument.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919399 13f79535-47bb-0310-9956-ffa450edef68

12 months ago* .github/workflows/windows.yml: Enable HTTPD private headers when installing
Ivan Zhakov [Sat, 20 Jul 2024 13:09:23 +0000 (13:09 +0000)] 
* .github/workflows/windows.yml: Enable HTTPD private headers when installing
   APR.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919398 13f79535-47bb-0310-9956-ffa450edef68

12 months agoCI: Add Windows GitHub Action job. Not really tested.
Ivan Zhakov [Sat, 20 Jul 2024 13:04:40 +0000 (13:04 +0000)] 
CI: Add Windows GitHub Action job. Not really tested.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919397 13f79535-47bb-0310-9956-ffa450edef68

12 months ago* CMakeLists.txt: By default use PCRE2 CMake package if supported.
Ivan Zhakov [Sat, 20 Jul 2024 12:51:16 +0000 (12:51 +0000)] 
* CMakeLists.txt: By default use PCRE2 CMake package if supported.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919395 13f79535-47bb-0310-9956-ffa450edef68

12 months ago* os/win32/modules.c: Include "ap_config.h" to match the file generated by
Ivan Zhakov [Sat, 20 Jul 2024 12:15:48 +0000 (12:15 +0000)] 
* os/win32/modules.c: Include "ap_config.h" to match the file generated by
  build/build-modules-c.awk. It doesn't change the behaviour because ap_config.h
  is included by httpd.h.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919392 13f79535-47bb-0310-9956-ffa450edef68

12 months ago* os/win32/modules.c: Add AP_DECLARE_DATA to ap_prelinked_module_symbols
Ivan Zhakov [Sat, 20 Jul 2024 12:13:26 +0000 (12:13 +0000)] 
* os/win32/modules.c: Add AP_DECLARE_DATA to ap_prelinked_module_symbols
  to match definition in ap_config.h.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919391 13f79535-47bb-0310-9956-ffa450edef68

12 months agoSkip more h2 tests in prefork
Rainer Jung [Wed, 17 Jul 2024 22:11:28 +0000 (22:11 +0000)] 
Skip more h2 tests in prefork

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919334 13f79535-47bb-0310-9956-ffa450edef68

12 months agoSkip h2 tests on prefork
Rainer Jung [Wed, 17 Jul 2024 22:02:27 +0000 (22:02 +0000)] 
Skip h2 tests on prefork

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919332 13f79535-47bb-0310-9956-ffa450edef68

12 months agoFix typo in test name
Rainer Jung [Wed, 17 Jul 2024 21:57:23 +0000 (21:57 +0000)] 
Fix typo in test name

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919330 13f79535-47bb-0310-9956-ffa450edef68

12 months agomod_rewrite: Better question mark tracking to avoid UnsafeAllow3F. PR 69197.
Yann Ylavic [Wed, 17 Jul 2024 20:50:12 +0000 (20:50 +0000)] 
mod_rewrite: Better question mark tracking to avoid UnsafeAllow3F.  PR 69197.

Track in do_expand() whether a '?' in the uri-path comes from a literal in
the substitution string or from an expansion (variable, lookup, ...).
In the former case it's safe to assume that it's the query-string separator
but for the other case it's not (could be a decoded %3f from r->uri).

This allows to avoid [UnsafeAllow3F] for most cases.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919325 13f79535-47bb-0310-9956-ffa450edef68

12 months agocore: Improve AP_REQUEST_ #defines.
Yann Ylavic [Tue, 16 Jul 2024 15:56:54 +0000 (15:56 +0000)] 
core: Improve AP_REQUEST_ #defines.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919290 13f79535-47bb-0310-9956-ffa450edef68

12 months agoMake sure pytest shuts down the web server after each package
Rainer Jung [Mon, 15 Jul 2024 22:34:32 +0000 (22:34 +0000)] 
Make sure pytest shuts down the web server after each package

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919265 13f79535-47bb-0310-9956-ffa450edef68

12 months agocopy the trusted flag from the subrequest
Eric Covener [Mon, 15 Jul 2024 12:06:46 +0000 (12:06 +0000)] 
copy the trusted flag from the subrequest

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919247 13f79535-47bb-0310-9956-ffa450edef68

12 months agomerge leading slashes by default
Eric Covener [Mon, 15 Jul 2024 12:05:57 +0000 (12:05 +0000)] 
merge leading slashes by default

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919246 13f79535-47bb-0310-9956-ffa450edef68

12 months agocore: ap_location_walk() does not deal with the filesystem
Yann Ylavic [Fri, 12 Jul 2024 15:41:42 +0000 (15:41 +0000)] 
core: ap_location_walk() does not deal with the filesystem

So it shouldn't merge slashes according to filesystem rules.

* server/request.c(ap_location_walk):
  Use ap_no2slash_ex(,0) instead of ap_no2slash() to ignore
  filesystem specifics.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919165 13f79535-47bb-0310-9956-ffa450edef68

12 months agomod_status: "Threads" span three colomns (busy, graceful, idle), not two.
Yann Ylavic [Thu, 11 Jul 2024 14:57:46 +0000 (14:57 +0000)] 
mod_status: "Threads" span three colomns (busy, graceful, idle), not two.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919148 13f79535-47bb-0310-9956-ffa450edef68

12 months agomod_status: Follow up to r1918482: Bump colspan for the new wait-io colomn
Yann Ylavic [Thu, 11 Jul 2024 14:12:31 +0000 (14:12 +0000)] 
mod_status: Follow up to r1918482: Bump colspan for the new wait-io colomn

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919141 13f79535-47bb-0310-9956-ffa450edef68

12 months agotest http1, add version check for trailer tests
Stefan Eissing [Thu, 11 Jul 2024 08:10:54 +0000 (08:10 +0000)] 
test http1, add version check for trailer tests

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919125 13f79535-47bb-0310-9956-ffa450edef68

12 months agosync test code with mod-h2
Stefan Eissing [Wed, 10 Jul 2024 10:55:23 +0000 (10:55 +0000)] 
sync test code with mod-h2

- shutdown server at end of h2 tests
- adapt minimum httpd versions for some tests
- add test_700_20 for load on blocked connections,
  disabled for now until mpm_event improves
- build websocket client automatically

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919087 13f79535-47bb-0310-9956-ffa450edef68

12 months agomod_md: Keep compat with openssl < 1.1
Yann Ylavic [Mon, 8 Jul 2024 15:06:14 +0000 (15:06 +0000)] 
mod_md: Keep compat with openssl < 1.1

EVP_PKEY_get0_RSA() does not exist in openssl < 1.1, use EVP_PKEY_get1_RSA()
instead, hence RSA_free() the returned ref to avoid a leak.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919026 13f79535-47bb-0310-9956-ffa450edef68

12 months agoFollow up to r1919023: fix compilation.
Yann Ylavic [Mon, 8 Jul 2024 14:34:37 +0000 (14:34 +0000)] 
Follow up to r1919023: fix compilation.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919024 13f79535-47bb-0310-9956-ffa450edef68

12 months agomod_proxy: Don't mangle r->filename when ap_proxy_canon_netloc() fails.
Yann Ylavic [Mon, 8 Jul 2024 14:25:58 +0000 (14:25 +0000)] 
mod_proxy: Don't mangle r->filename when ap_proxy_canon_netloc() fails.

ap_proxy_canon_netloc() called from canon_handler hooks modifies its given
url in pace, hence &r->filename[6] passed from ap_proxy_canon_url().

This is not an issue if every canon_handler hook succeeds (or declines)
since r->filename is usually completely rewritten finally, but on failure
it gets truncated.

Avoid this by passing a copy of r->filename from the start, the proxy *url
and r->filename don't need to point to the same data.

* proxy/proxy_util.c(ap_proxy_canon_url):
  Pass a copy of r->filename to the canon_handler hooks.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919023 13f79535-47bb-0310-9956-ffa450edef68

12 months agomod_proxy: Fix canonicalisation and FCGI env (PATH_INFO, SCRIPT_NAME) for
Yann Ylavic [Mon, 8 Jul 2024 13:59:50 +0000 (13:59 +0000)] 
mod_proxy: Fix canonicalisation and FCGI env (PATH_INFO, SCRIPT_NAME) for
           "balancer:" URLs set via SetHandler, also allowing for "unix:"
           sockets with BalancerMember(s).  PR 69168.

* modules/proxy/proxy_util.h, modules/proxy/proxy_util.c:
  Move proxy_interpolate() from mod_proxy.c to ap_proxy_interpolate(),
  exported locally only (non public).
  Move proxy_fixup() from mod_proxy.c to ap_proxy_canon_url(), exported
  locally only too (non public).
  Rollback ap_proxy_fixup_uds_filename() to a local fixup_uds_filename()
  usable from proxy_util.c only. The public function will be removed in
  a following commit.

* modules/proxy/mod_proxy.h:
  Note that ap_proxy_fixup_uds_filename() is deprecated.

* modules/proxy/mod_proxy.c:
  Just use ap_proxy_canon_url() from proxy_fixup() and proxy_handler()
  for SetHandler URLs.

* modules/proxy/mod_proxy_balancer.c:
  Do not canonicalize the path from proxy_balancer_canon() anymore but
  rather from balancer_fixup() where the balancer URL is rewritten to
  the BalancerMember URL.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919022 13f79535-47bb-0310-9956-ffa450edef68

12 months agoFollow up to r1919015: fix compilation.
Yann Ylavic [Mon, 8 Jul 2024 13:07:23 +0000 (13:07 +0000)] 
Follow up to r1919015: fix compilation.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919019 13f79535-47bb-0310-9956-ffa450edef68

12 months agomod_proxy: Avoid AH01059 parsing error for SetHandler "unix:" URLs. PR 69160
Yann Ylavic [Mon, 8 Jul 2024 12:35:35 +0000 (12:35 +0000)] 
mod_proxy: Avoid AH01059 parsing error for SetHandler "unix:" URLs.  PR 69160

The hostname part of the URL is not mandated for UDS though the canon_handler
hooks will require it, so add "localhost" if it's missing (won't be used anyway
for an AF_UNIX socket).

This can trigger with SetHandler "unix:" URLs which are now also fixed up.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919015 13f79535-47bb-0310-9956-ffa450edef68

12 months agofr doc rebuild.
Lucien Gentis [Sat, 6 Jul 2024 15:23:52 +0000 (15:23 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918971 13f79535-47bb-0310-9956-ffa450edef68

12 months agofr doc XML files updates.
Lucien Gentis [Sat, 6 Jul 2024 15:22:42 +0000 (15:22 +0000)] 
fr doc XML files updates.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918970 13f79535-47bb-0310-9956-ffa450edef68

13 months ago* Check for correct OpenSSL version for mod_ssl_ct
Ruediger Pluem [Fri, 5 Jul 2024 14:50:24 +0000 (14:50 +0000)] 
* Check for correct OpenSSL version for mod_ssl_ct

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918935 13f79535-47bb-0310-9956-ffa450edef68

13 months agomention quirks, add example, clarify
Eric Covener [Wed, 3 Jul 2024 22:29:46 +0000 (22:29 +0000)] 
mention quirks, add example, clarify

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918892 13f79535-47bb-0310-9956-ffa450edef68

13 months agomod_ssl: Let modssl_set_io_callbacks() whether which callback is needed.
Yann Ylavic [Wed, 3 Jul 2024 15:06:32 +0000 (15:06 +0000)] 
mod_ssl: Let modssl_set_io_callbacks() whether which callback is needed.

* modules/ssl/ssl_private.h:
  Add conn_rec and server_rec args to modssl_set_io_callbacks().

* modules/ssl/ssl_engine_io.c(modssl_set_io_callbacks):
  Don't set modssl_io_cb for log levels below TRACE4.

* modules/ssl/ssl_engine_io.c(ssl_io_filter_init),
  modules/ssl/ssl_engine_kernel.c(ssl_find_vhost):
  Call modssl_set_io_callbacks() unconditionally.

* modules/ssl/ssl_engine_io.c(modssl_io_cb):
  While at it, (cmd & BIO_CB_WRITE) is enough to differentiate a
  write from read.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918883 13f79535-47bb-0310-9956-ffa450edef68

13 months ago* Changelog for r1918880
Ruediger Pluem [Wed, 3 Jul 2024 14:42:13 +0000 (14:42 +0000)] 
* Changelog for r1918880

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918881 13f79535-47bb-0310-9956-ffa450edef68

13 months ago* Restore SSL dumping for OpenSSL >= 3.0.
Ruediger Pluem [Wed, 3 Jul 2024 14:37:10 +0000 (14:37 +0000)] 
* Restore SSL dumping for OpenSSL >= 3.0.

  Since r1908537 BIO_set_callback_ex is used with OpenSSL >= 3.0 instead of
  BIO_set_callback to set the BIO callback. The meaning of parameters and
  their range of values in the callback function set by BIO_set_callback_ex
  has changed compared to the callback function set by BIO_set_callback
  although parameters kept their names. Accommodate for this and adjust the
  code accordingly.
  Furthermore limit the size of dumps to APR_UINT16_MAX bytes. Given the length
  of SSL records of 16k this should not have practical implications.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918880 13f79535-47bb-0310-9956-ffa450edef68

13 months ago* Follow up to r1918814: Strings are from configuration and thus trusted
Ruediger Pluem [Tue, 2 Jul 2024 11:19:45 +0000 (11:19 +0000)] 
* Follow up to r1918814: Strings are from configuration and thus trusted

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918823 13f79535-47bb-0310-9956-ffa450edef68

13 months ago* Follow up to r1918814: Always trust content types that we set literally
Ruediger Pluem [Tue, 2 Jul 2024 06:57:23 +0000 (06:57 +0000)] 
* Follow up to r1918814: Always trust content types that we set literally

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918815 13f79535-47bb-0310-9956-ffa450edef68

13 months ago* Always trust content types that we set literally
Ruediger Pluem [Tue, 2 Jul 2024 06:35:53 +0000 (06:35 +0000)] 
* Always trust content types that we set literally

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918814 13f79535-47bb-0310-9956-ffa450edef68

13 months agomaintain trusted flag
Eric Covener [Mon, 1 Jul 2024 19:23:40 +0000 (19:23 +0000)] 
maintain trusted flag

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918795 13f79535-47bb-0310-9956-ffa450edef68

13 months agoremove openssl vs. event comment
Eric Covener [Mon, 1 Jul 2024 18:38:31 +0000 (18:38 +0000)] 
remove openssl vs. event comment

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918789 13f79535-47bb-0310-9956-ffa450edef68

13 months agomatch AP_IS_SLASH macro
Eric Covener [Wed, 26 Jun 2024 13:39:59 +0000 (13:39 +0000)] 
match AP_IS_SLASH macro

followup to 1918651

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918663 13f79535-47bb-0310-9956-ffa450edef68

13 months agodon't add / to / in the non-perdir
Eric Covener [Wed, 26 Jun 2024 10:27:30 +0000 (10:27 +0000)] 
don't add / to / in the non-perdir

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918652 13f79535-47bb-0310-9956-ffa450edef68

13 months agofactor out IS_SLASH, perdir fix
Eric Covener [Wed, 26 Jun 2024 10:09:29 +0000 (10:09 +0000)] 
factor out IS_SLASH, perdir fix

in per-dir, the filename will be internally redirected, so / is OK too.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918651 13f79535-47bb-0310-9956-ffa450edef68

13 months agomod_proxy: follow up to r1918626: Simplify ap_proxy_fixup_uds_filename() and callers.
Yann Ylavic [Wed, 26 Jun 2024 09:19:16 +0000 (09:19 +0000)] 
mod_proxy: follow up to r1918626: Simplify ap_proxy_fixup_uds_filename() and callers.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918647 13f79535-47bb-0310-9956-ffa450edef68

13 months agomod_proxy_http2: ap_proxy_determine_connection()'s given &url is in/out.
Yann Ylavic [Wed, 26 Jun 2024 00:15:39 +0000 (00:15 +0000)] 
mod_proxy_http2: ap_proxy_determine_connection()'s given &url is in/out.

* modules/http2/mod_proxy_http2.c(proxy_http2_handler):
  Restart from the original URL on reconnect.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918627 13f79535-47bb-0310-9956-ffa450edef68

13 months agomod_proxy: Fixup UDS filename for mod_proxy called through r->handler.
Yann Ylavic [Tue, 25 Jun 2024 23:49:09 +0000 (23:49 +0000)] 
mod_proxy: Fixup UDS filename for mod_proxy called through r->handler.

* modules/proxy/proxy_util.c:
  Export ap_proxy_fixup_uds_filename() from fix_uds_filename.
  Call it from ap_proxy_pre_request() even for rewritten balancer workers.

* modules/proxy/mod_proxy.h:
  Declare ap_proxy_fixup_uds_filename()

* modules/proxy/mod_proxy.c:
  Fixup UDS filename from r->handler in proxy_handler().

* include/ap_mmn.h:
  Bump MMN minor for ap_proxy_fixup_uds_filename()

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918626 13f79535-47bb-0310-9956-ffa450edef68

13 months agofix comparison of local path on Windows
Eric Covener [Tue, 25 Jun 2024 19:43:15 +0000 (19:43 +0000)] 
fix comparison of local path on Windows

Submitted By: Yann Ylavic

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918623 13f79535-47bb-0310-9956-ffa450edef68

13 months agovalidate hostname
Eric Covener [Tue, 25 Jun 2024 17:29:06 +0000 (17:29 +0000)] 
validate hostname

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918606 13f79535-47bb-0310-9956-ffa450edef68

13 months ago* modules/mappers/mod_rewrite.c: Fill in logno.
Joe Orton [Tue, 25 Jun 2024 15:53:33 +0000 (15:53 +0000)] 
* modules/mappers/mod_rewrite.c: Fill in logno.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918604 13f79535-47bb-0310-9956-ffa450edef68

13 months agopytest: fix asset list extraction from nghttp output
Rainer Jung [Tue, 25 Jun 2024 09:21:49 +0000 (09:21 +0000)] 
pytest: fix asset list extraction from nghttp output

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918576 13f79535-47bb-0310-9956-ffa450edef68

13 months agodocs bld break
Eric Covener [Mon, 24 Jun 2024 18:21:04 +0000 (18:21 +0000)] 
docs bld break

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918565 13f79535-47bb-0310-9956-ffa450edef68

13 months agoMMN bump for recent additions
Eric Covener [Mon, 24 Jun 2024 17:32:26 +0000 (17:32 +0000)] 
MMN bump for recent additions

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918554 13f79535-47bb-0310-9956-ffa450edef68

13 months agoblock inadvertent subst of special filenames
Eric Covener [Mon, 24 Jun 2024 17:28:12 +0000 (17:28 +0000)] 
block inadvertent subst of special filenames

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918553 13f79535-47bb-0310-9956-ffa450edef68

13 months agotighten up prefix_stat and %3f handling
Eric Covener [Mon, 24 Jun 2024 17:24:52 +0000 (17:24 +0000)] 
tighten up prefix_stat and %3f handling

Require opt-ins for unsafe substitutions

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918552 13f79535-47bb-0310-9956-ffa450edef68

13 months agoadd ap_set_content_type_ex to differentiate
Eric Covener [Mon, 24 Jun 2024 17:22:51 +0000 (17:22 +0000)] 
add ap_set_content_type_ex to differentiate

trusted sources

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918551 13f79535-47bb-0310-9956-ffa450edef68

13 months agomod_proxy: escape for non-proxypass configuration
Eric Covener [Mon, 24 Jun 2024 17:21:00 +0000 (17:21 +0000)] 
mod_proxy: escape for non-proxypass configuration

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918550 13f79535-47bb-0310-9956-ffa450edef68

13 months agoadd UNCList directive on Windows
Eric Covener [Mon, 24 Jun 2024 17:19:44 +0000 (17:19 +0000)] 
add UNCList directive on Windows

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918549 13f79535-47bb-0310-9956-ffa450edef68

13 months agomod_http2: early exit if bb is null
Eric Covener [Mon, 24 Jun 2024 17:18:11 +0000 (17:18 +0000)] 
mod_http2: early exit if bb is null

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918548 13f79535-47bb-0310-9956-ffa450edef68

13 months agofr doc rebuild.
Lucien Gentis [Sat, 22 Jun 2024 15:10:21 +0000 (15:10 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918507 13f79535-47bb-0310-9956-ffa450edef68

13 months agofr doc xml file update.
Lucien Gentis [Sat, 22 Jun 2024 15:09:17 +0000 (15:09 +0000)] 
fr doc xml file update.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918506 13f79535-47bb-0310-9956-ffa450edef68

13 months agompm_event: Follow up to r1918482: CONN_STATE_LINGER* are not the last anymore.
Yann Ylavic [Fri, 21 Jun 2024 15:38:47 +0000 (15:38 +0000)] 
mpm_event: Follow up to r1918482: CONN_STATE_LINGER* are not the last anymore.

Since CONN_STATE_ASYNC_WAITIO, we cannot check for < or >= CONN_STATE_LINGER
anymore to determine if in an lingering close state, so let's add a new
CONN_STATE_IS_LINGERING_CLOSE() macro for this and use it in mpm_event.

The test for state == CONN_STATE_LINGER in process_lingering_close() is a
bit weak too in order to call ap_start_lingering_close() the first time only,
so have a conn_state->linger_started flag instead.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918491 13f79535-47bb-0310-9956-ffa450edef68

13 months agompm_event: Follow up to r1918482: CONN_STATE_ASYNC_WAITIO > CONN_STATE_LINGER.
Yann Ylavic [Fri, 21 Jun 2024 11:13:02 +0000 (11:13 +0000)] 
mpm_event: Follow up to r1918482: CONN_STATE_ASYNC_WAITIO > CONN_STATE_LINGER.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918483 13f79535-47bb-0310-9956-ffa450edef68

13 months agompm_event,mod_http2,mod_status: Follow up to r1918257: CONN_STATE_ASYNC_WAITIO.
Yann Ylavic [Fri, 21 Jun 2024 09:48:12 +0000 (09:48 +0000)] 
mpm_event,mod_http2,mod_status: Follow up to r1918257: CONN_STATE_ASYNC_WAITIO.

Per discussion on PR #449, have a separate state for returning the connection
to the MPM to wait for an IO (namely CONN_STATE_ASYNC_WAITIO), rather than
(ab)using CONN_STATE_PROCESSING.

This removes the need for AGAIN added in r1918257 (for now), and AP_MPMQ_CAN_AGAIN
is renamed to AP_MPMQ_CAN_WAITIO.

This is also the state that mod_status accounts for, so rename ->processing
to ->wait_io in process_score (shows as "wait-io" in mod_status and mod_lua).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918482 13f79535-47bb-0310-9956-ffa450edef68

13 months agomod_proxy: Follow up to r1918438: Don't cleanup conn before running the address cleanup.
Yann Ylavic [Wed, 19 Jun 2024 14:37:20 +0000 (14:37 +0000)] 
mod_proxy: Follow up to r1918438: Don't cleanup conn before running the address cleanup.

* modules/proxy/proxy_util.c(ap_proxy_determine_address):
  Move conn_cleanup() after apr_pool_cleanup_run().

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918442 13f79535-47bb-0310-9956-ffa450edef68

13 months agomod_proxy: Follow up to r1918412 and r1918429: Special case WIN32/OS2 only.
Yann Ylavic [Wed, 19 Jun 2024 13:20:12 +0000 (13:20 +0000)] 
mod_proxy: Follow up to r1918412 and r1918429: Special case WIN32/OS2 only.

apr_socket_connect() on unixes does copy the passed in *addr, so limit the
liefetime workaround to Windows and OS/2 only (which don't).

* modules/proxy/proxy_util.c(ap_proxy_determine_address):
  #ifdef the relevant code for WIN32/OS2 only, and improve comment.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918438 13f79535-47bb-0310-9956-ffa450edef68

13 months agomod_proxy: Follow up to r1918412: Find if one of the conn->addr[->next] is alive.
Yann Ylavic [Wed, 19 Jun 2024 10:39:56 +0000 (10:39 +0000)] 
mod_proxy: Follow up to r1918412: Find if one of the conn->addr[->next] is alive.

ap_proxy_connect_backend() will use the first conn->addr[->next] that works, so
the current address alive can be any of them.

* modules/proxy/proxy_util.c(ap_proxy_determine_address):
  Loop for all conn->addr[->next] to determine if addr_alive.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918429 13f79535-47bb-0310-9956-ffa450edef68

13 months agoSteal two lognos.
Joe Orton [Wed, 19 Jun 2024 09:32:44 +0000 (09:32 +0000)] 
Steal two lognos.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918428 13f79535-47bb-0310-9956-ffa450edef68

13 months agomod_proxy: Keep connection alive on addressTTL expiry if the DNS didn't change.
Yann Ylavic [Tue, 18 Jun 2024 14:20:06 +0000 (14:20 +0000)] 
mod_proxy: Keep connection alive on addressTTL expiry if the DNS didn't change.

* modules/proxy/proxy_util.c(address_cleanup):
  Rename to conn_cleanup() since it also closes the socket, and run
  socket_cleanup() first to avoid dangling conn->sock->remote_addr.

* modules/proxy/proxy_util.c(ap_proxy_determine_address):
  Compare the new address with the old one and keep the socket alive
  if it did not change.

Follow up to r1918410.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918412 13f79535-47bb-0310-9956-ffa450edef68

13 months agomod_proxy: Fix DNS requests and connections closed before the configured addressTTL...
Yann Ylavic [Tue, 18 Jun 2024 14:14:08 +0000 (14:14 +0000)] 
mod_proxy: Fix DNS requests and connections closed before the configured addressTTL.  BZ 69126

* modules/proxy/proxy_util.c(ap_proxy_determine_address):
  Fix shared expiry compare-and-swap loop.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918410 13f79535-47bb-0310-9956-ffa450edef68

13 months agoFix the Japanese translation docs of the LimitRequestBody
Joe Orton [Tue, 18 Jun 2024 13:59:54 +0000 (13:59 +0000)] 
Fix the Japanese translation docs of the LimitRequestBody

Submitted by: vinyl-umbrella <61788251+vinyl-umbrella users.noreply.github.com>
Github: closes #441

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918409 13f79535-47bb-0310-9956-ffa450edef68

13 months agoemphasize no default value
Eric Covener [Tue, 18 Jun 2024 13:14:42 +0000 (13:14 +0000)] 
emphasize no default value

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918407 13f79535-47bb-0310-9956-ffa450edef68

13 months agosteal 2
Eric Covener [Mon, 17 Jun 2024 17:06:09 +0000 (17:06 +0000)] 
steal 2

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918390 13f79535-47bb-0310-9956-ffa450edef68

13 months agofix cmake windows build of proxy lbmethod mods
Eric Covener [Fri, 14 Jun 2024 00:53:25 +0000 (00:53 +0000)] 
fix cmake windows build of proxy lbmethod mods

(for me at least, new-to-cmake on vstudio 2022)

Creating library mod_lbmethod_bybusyness.lib and object mod_lbmethod_bybusyness.exp
mod_lbmethod_bybusyness.c.obj : error LNK2019: unresolved external symbol __imp_ap_proxy_get_busy_count referenced in function is_best_bybusyness
mod_lbmethod_bybusyness.c.obj : error LNK2019: unresolved external symbol __imp_ap_proxy_set_busy_count referenced in function is_best_bybusyness
mod_lbmethod_bybusyness.so : fatal error LNK1120: 2 unresolved externals

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918305 13f79535-47bb-0310-9956-ffa450edef68

13 months agofix win cmake build by prefixing local enum values
Eric Covener [Thu, 13 Jun 2024 19:00:41 +0000 (19:00 +0000)] 
fix win cmake build by prefixing local enum values

Something in the declaration is a macro, at least
in visual studio 2022.

 error C2059: syntax error: 'constant'

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918302 13f79535-47bb-0310-9956-ffa450edef68

13 months ago* include/httpd.h: Fix comment.
Joe Orton [Thu, 13 Jun 2024 14:44:50 +0000 (14:44 +0000)] 
* include/httpd.h: Fix comment.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918297 13f79535-47bb-0310-9956-ffa450edef68

13 months agompm_event,mod_http2: Keep compatibility with CONN_STATE_PROCESSING + OK
Yann Ylavic [Tue, 11 Jun 2024 14:46:29 +0000 (14:46 +0000)] 
mpm_event,mod_http2: Keep compatibility with CONN_STATE_PROCESSING + OK

Before r1918022, returning OK with CONN_STATE_PROCESSING to mpm_event was
handled like/by CONN_STATE_LINGER "to not break old or third-party modules
which might return OK w/o touching the state and expect lingering close,
like with worker or prefork MPMs".

So we need a new return code to be allowed to apply the new POLLIN/POLLOUT
behaviour for CONN_STATE_PROCESSING, thus revive AGAIN as introduced by
Graham some times ago for a nonblocking WIP (moved to a branch/PR since then).

MPM event will advertise its ability to handle CONN_STATE_PROCESSING + AGAIN
with AP_MPMQ_CAN_AGAIN, and mod_http2 can use that to know how to return to
the MPM as expected. When !AP_MPMQ_CAN_AGAIN modules/mod_http2 can still use
CONN_STATE_WRITE_COMPLETION + CONN_SENSE_WANT_READ + c->clogging_input_filters
which will work in mpm_even-2.4.x still.

* include/ap_mmn.h:
  Bump MMN minor for AP_MPMQ_CAN_AGAIN and AGAIN.

* include/ap_mpm.h:
  Define AP_MPMQ_CAN_AGAIN.

* include/httpd.h:
  Define AGAIN.

* modules/http2/h2.h:
  No need for H2_USE_STATE_PROCESSING anymore with AP_MPMQ_CAN_AGAIN.

* modules/http2/h2_c1.c:
  For !keepalive case return to the MPM using CONN_STATE_PROCESSING + AGAIN
  or CONN_STATE_WRITE_COMPLETION + c->clogging_input_filters depending on
  AP_MPMQ_CAN_AGAIN only.

* modules/http2/h2_session.c:
  Can return to the MPM for h2_send_flow_blocked() provided it's async only.

* server/mpm/event/event.c:
  Rework process_socket()'s CONN_STATE_PROCESSING to handle AGAIN and preserve
  compatibility. Have a lingering_close label to goto there faster when
  process_lingering_close() is to be called. Improve relevant comments.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918257 13f79535-47bb-0310-9956-ffa450edef68

13 months agoCI: Set the path to php-fpm so it's found by proxy_fcgi.t (after r1918149).
Joe Orton [Mon, 10 Jun 2024 10:46:32 +0000 (10:46 +0000)] 
CI: Set the path to php-fpm so it's found by proxy_fcgi.t (after r1918149).

Github: closes #453

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918228 13f79535-47bb-0310-9956-ffa450edef68

14 months agoCI: Set the path to php-fpm so it's found by proxy_fcgi.t (after r1918149).
Joe Orton [Tue, 4 Jun 2024 16:52:01 +0000 (16:52 +0000)] 
CI: Set the path to php-fpm so it's found by proxy_fcgi.t (after r1918149).

Github: closes #453

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918150 13f79535-47bb-0310-9956-ffa450edef68

14 months agoAdd avif mime type
Joe Orton [Mon, 3 Jun 2024 08:44:55 +0000 (08:44 +0000)] 
Add avif mime type

Submitted by: Adam Silverstein <adamsilverstein earthboundhosting.com>
Github: closes #451

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918129 13f79535-47bb-0310-9956-ffa450edef68

14 months agomod_status: Fix missing initialization, follow up to r1918098
Joe Orton [Mon, 3 Jun 2024 08:02:09 +0000 (08:02 +0000)] 
mod_status: Fix missing initialization, follow up to r1918098

Submitted by: VladimĂ­r Chlup <vchlup redhat.com>
Github: closes #452

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918127 13f79535-47bb-0310-9956-ffa450edef68

14 months agoFollow up to r1918098 (and r1918022): Actually bump the MMN.
Yann Ylavic [Sat, 1 Jun 2024 16:03:58 +0000 (16:03 +0000)] 
Follow up to r1918098 (and r1918022): Actually bump the MMN.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918100 13f79535-47bb-0310-9956-ffa450edef68

14 months agoFollow up to r1918098 (and r1918022): Push missing changes.
Yann Ylavic [Sat, 1 Jun 2024 15:11:48 +0000 (15:11 +0000)] 
Follow up to r1918098 (and r1918022): Push missing changes.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918099 13f79535-47bb-0310-9956-ffa450edef68

14 months agompm_event, mod_status: Separate processing and write completion queues.
Yann Ylavic [Sat, 1 Jun 2024 15:08:46 +0000 (15:08 +0000)] 
mpm_event, mod_status: Separate processing and write completion queues.

As a follow up to r1918022 which handled the new CONN_STATE_PROCESS(ing) and
existing CONN_STATE_WRITE_COMPLETION in the same async queue, let's now have
two separates ones which allows more relevant async accounting in mod_status.

Rename CONN_STATE_PROCESS to CONN_STATE_PROCESSING as it's how it will be
called in mod_status.

* include/ap_mmn.h:
  MMN minor bump for process_score->processing counter.

* include/httpd.h:
  Rename CONN_STATE_PROCESS to CONN_STATE_PROCESSING.

* include/scoreboard.h:
  Add process_score->processing field.

* include/httpd.h, modules/http/http_core.c, modules/http2/h2_c1.c,
    server/mpm/event/event.c, server/mpm/motorz/motorz.c,
    server/mpm/simple/simple_io.c:
  Rename CONN_STATE_PROCESS to CONN_STATE_PROCESSING.

* server/mpm/event/event.c:
  Restore write_completion_q to handle connections in CONN_STATE_WRITE_COMPLETION.
  Use processing_q (renamed from process_q) solely for CONN_STATE_PROCESSING.
  Update process_score->processing according to the length of processing_q.

* modules/generators/mod_status.c:
  Show the value of process_score->processing in the stats.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918098 13f79535-47bb-0310-9956-ffa450edef68

14 months agompm_event: Don't spam with "Stopping process due to MaxConnectionsPerChild"
Yann Ylavic [Fri, 31 May 2024 15:18:33 +0000 (15:18 +0000)] 
mpm_event: Don't spam with "Stopping process due to MaxConnectionsPerChild"

When MaxConnectionsPerChild is reached there may be some connections to process
still and the listener should stop writing this at every loop. Logging once
is enough.

* server/mpm/event/event.c(check_infinite_requests): Raise conns_this_child
  unconditionally.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918078 13f79535-47bb-0310-9956-ffa450edef68

14 months agoCI: For LDAP tests, switch to using OpenLDAP slapd running on
Joe Orton [Thu, 30 May 2024 14:48:21 +0000 (14:48 +0000)] 
CI: For LDAP tests, switch to using OpenLDAP slapd running on
CentOS Stream 9.

Github: closes #450

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918059 13f79535-47bb-0310-9956-ffa450edef68

14 months agoFollow up to r1918022: MMN minor bump and checks for the new conn_state_e aliases...
Yann Ylavic [Wed, 29 May 2024 09:41:25 +0000 (09:41 +0000)] 
Follow up to r1918022: MMN minor bump and checks for the new conn_state_e aliases' usability.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918035 13f79535-47bb-0310-9956-ffa450edef68

14 months agoFix ENGINE use with OpenSSL 3.2, which appears to be broken due to a
Joe Orton [Tue, 28 May 2024 15:42:03 +0000 (15:42 +0000)] 
Fix ENGINE use with OpenSSL 3.2, which appears to be broken due to a
refcounting issue in mod_ssl.

* modules/ssl/ssl_engine_pphrase.c (modssl_engine_cleanup):
  New function.
  (modssl_load_keypair_engine): Take pconf & ptemp arguments, don't
  call ENGINE_finish() immediately but register the above cleanup.
  (modssl_load_engine_keypair): Pass through pconf & ptemp.

* modules/ssl/ssl_engine_init.c (ssl_init_server_certs):
  Pass through pconf and ptemp to modssl_load_engine_keypair.

Github: closes #446

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918024 13f79535-47bb-0310-9956-ffa450edef68

14 months ago mpm_event,core: Handle async POLLIN/POLLOUT in CONN_STATE_PROCESS state.
Yann Ylavic [Tue, 28 May 2024 14:10:43 +0000 (14:10 +0000)] 
 mpm_event,core: Handle async POLLIN/POLLOUT in CONN_STATE_PROCESS state.

* include/httpd.h:
  Rename CONN_STATE_CHECK_REQUEST_LINE_READABLE to CONN_STATE_KEEPALIVE
  and CONN_STATE_READ_REQUEST_LINE to CONN_STATE_PROCESS, keeping the
  old enums as aliases. Rework comments about each state.

* server/mpm/event/event.c:
  Use the new states names.
  Let the process_connection hooks return CONN_STATE_PROCESS for mpm_event
  to POLLIN or POLLOUT depending on c->cs->sense being CONN_SENSE_WANT_READ
  or CONN_SENSE_WANT_WRITE respectively.
  Remove (ab)use of CONN_STATE_WRITE_COMPLETION with CONN_SENSE_WANT_READ to
  mean poll() for read (and the need for the obscure c->clogging_input_filters
  to make it work as expected). This is what CONN_STATE_PROCESS is for now.
  Update the comment about the states that can be returned by process_connection
  hooks (and their usage).
  Use the same queue (process_q renamed from write_completion_q) for polling
  connections in both CONN_STATE_PROCESS and CONN_STATE_WRITE_COMPLETION
  states since they both use the same (server_rec's) Timeout. This implies
  that both states are accounted as "write-completion" in mod_status for now.

* server/mpm/motorz/motorz.c, server/mpm/simple/simple_io.c, modules/http/http_core.c:
  Use the new states names (only).

* include/scoreboard.h:
  Change comment about process_score->write_completion to note that the
  counter refers to CONN_STATE_PROCESS connections returned to the MPM
  too.

* modules/http2/h2_c1.c:
  Return the c1 connection with the CONN_STATE_PROCESS state rather than
  CONN_STATE_WRITE_COMPLETION when waiting for a window update (i.e. ask
  the MPM to poll for read directly). This avoids the transition to
  CONN_STATE_KEEPALIVE which could kill the connection under high load.

Github: closes #448

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918022 13f79535-47bb-0310-9956-ffa450edef68

14 months agoSteal an APLONGO for PR 448.
Yann Ylavic [Tue, 28 May 2024 13:47:57 +0000 (13:47 +0000)] 
Steal an APLONGO for PR 448.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918021 13f79535-47bb-0310-9956-ffa450edef68

14 months ago *) mod_http2: sync with module's github.
Stefan Eissing [Mon, 27 May 2024 11:04:52 +0000 (11:04 +0000)] 
 *) mod_http2: sync with module's github.
    - on newer HTTPD versions, return connection monitoring
      to the event MPM when block on client updates.
      2.4.x versions still treat connections in the event
      MPM as KeepAlive and purge them on load in the middle
      of response processing.
    - spelling fixes
    - support for yield calls in c2 "network" filter

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918003 13f79535-47bb-0310-9956-ffa450edef68

14 months agosteal a number
Stefan Eissing [Mon, 27 May 2024 10:53:02 +0000 (10:53 +0000)] 
steal a number

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918002 13f79535-47bb-0310-9956-ffa450edef68

14 months ago* modules/proxy/config.m4: Stop exporting ajp_* functions from mod_proxy_ajp.so
Joe Orton [Wed, 22 May 2024 13:48:07 +0000 (13:48 +0000)] 
* modules/proxy/config.m4: Stop exporting ajp_* functions from mod_proxy_ajp.so
  in a shared module build.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1917900 13f79535-47bb-0310-9956-ffa450edef68

14 months agoExplicitly reject CGI output which includes a Transfer-Encoding
Joe Orton [Mon, 20 May 2024 09:18:10 +0000 (09:18 +0000)] 
Explicitly reject CGI output which includes a Transfer-Encoding
header, rather than drop it and send what's likely to be an unexpected
or corrupted response.

* modules/generators/cgi_common.h (cgi_handle_response): Send a 502
  error if Transfer-Encoding is present in the response headers.

PR: 68970
Github: closes #444

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1917835 13f79535-47bb-0310-9956-ffa450edef68

14 months agoForce ci build.
Yann Ylavic [Mon, 13 May 2024 19:49:56 +0000 (19:49 +0000)] 
Force ci build.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1917710 13f79535-47bb-0310-9956-ffa450edef68

14 months agofr doc rebuild.
Lucien Gentis [Sat, 11 May 2024 12:22:14 +0000 (12:22 +0000)] 
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1917669 13f79535-47bb-0310-9956-ffa450edef68

14 months agofr doc XML file update.
Lucien Gentis [Sat, 11 May 2024 12:21:14 +0000 (12:21 +0000)] 
fr doc XML file update.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1917668 13f79535-47bb-0310-9956-ffa450edef68

14 months agoSteal a number.
Joe Orton [Fri, 10 May 2024 08:49:15 +0000 (08:49 +0000)] 
Steal a number.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1917637 13f79535-47bb-0310-9956-ffa450edef68

14 months agoFail if SSLInsecureRenegotiation is used with mod_ssl, CVE-2009-3555
Joe Orton [Thu, 9 May 2024 09:05:38 +0000 (09:05 +0000)] 
Fail if SSLInsecureRenegotiation is used with mod_ssl, CVE-2009-3555
is now approaching 15 years old.

* modules/ssl/ssl_engine_config.c (ssl_cmd_SSLInsecureRenegotiation):
  Fail if used.
  (ssl_config_server_new, ssl_config_server_merge): Remove insecure
  reneg handling.

* modules/ssl/ssl_engine_init.c (ssl_init_ctx_protocol): Remove
  insecure_reneg handling.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1917600 13f79535-47bb-0310-9956-ffa450edef68