Index: auto/install
--- auto/install.orig	2022-06-21 16:25:37.000000000 +0200
+++ auto/install	2022-06-24 22:36:41.866421000 +0200
@@ -154,8 +154,9 @@
 	test -d '\$(DESTDIR)`dirname "$NGX_HTTP_LOG_PATH"`' \\
 		|| mkdir -p '\$(DESTDIR)`dirname "$NGX_HTTP_LOG_PATH"`'
 
-	test -d '\$(DESTDIR)$NGX_PREFIX/html' \\
-		|| cp -R $NGX_HTML '\$(DESTDIR)$NGX_PREFIX'
+	test -d '\$(DESTDIR)$NGX_PREFIX/share/nginx' || \
+	mkdir -p '\$(DESTDIR)$NGX_PREFIX/share/nginx'
+	cp -R $NGX_HTML '\$(DESTDIR)$NGX_PREFIX/share/nginx/'
 END
 
 
Index: nginx_headers_more_module/src/ngx_http_headers_more_headers_in.c
--- nginx_headers_more_module/src/ngx_http_headers_more_headers_in.c.orig	2017-11-04 00:05:42.000000000 +0100
+++ nginx_headers_more_module/src/ngx_http_headers_more_headers_in.c	2022-06-24 22:37:32.777970000 +0200
@@ -158,9 +158,15 @@
                  ngx_http_set_builtin_header },
 #endif
 
+#if defined(nginx_version) && nginx_version >= 1023000
+    { ngx_string("Cookie"),
+                 offsetof(ngx_http_headers_in_t, cookie),
+                 ngx_http_set_builtin_multi_header },
+#else
     { ngx_string("Cookie"),
                  offsetof(ngx_http_headers_in_t, cookies),
                  ngx_http_set_builtin_multi_header },
+#endif
 
     { ngx_null_string, 0, ngx_http_set_header }
 };
