From c4dc93de78cb1cb79c780c1adb41a0feaf8b5e3a Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Fri, 17 Jan 2025 14:11:38 +0100 Subject: [PATCH] fix(wsgi): alias the API server name Fixes packit/packit-service#2529 Signed-off-by: Matej Focko --- files/scripts/run_httpd.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/scripts/run_httpd.sh b/files/scripts/run_httpd.sh index eec9b0fe..3a0abe59 100755 --- a/files/scripts/run_httpd.sh +++ b/files/scripts/run_httpd.sh @@ -10,6 +10,10 @@ else SERVER_NAME="dashboard.${DEPLOYMENT}.packit.dev" fi +# [FIXME] This is a dirty hack to workaround 403 by the httpd server itself when +# open HTTP/2 connection gets reused +API_SERVER_NAME="${DEPLOYMENT}.packit.dev" + # See "mod_wsgi-express-3 start-server --help" for details on # these options, and the configuration documentation of mod_wsgi: # https://modwsgi.readthedocs.io/en/master/configuration.html @@ -21,6 +25,7 @@ exec mod_wsgi-express-3 start-server \ --ssl-certificate-file /secrets/fullchain.pem \ --ssl-certificate-key-file /secrets/privkey.pem \ --server-name ${SERVER_NAME} \ + --server-alias ${API_SERVER_NAME} \ --processes 2 \ --locale "C.UTF-8" \ /usr/share/packit_dashboard/packit_dashboard.wsgi