Skip to content

Commit c312c03

Browse files
committed
fix(wsgi): alias the API server name
Fixes packit/packit-service#2529 Signed-off-by: Matej Focko <[email protected]>
1 parent 338767f commit c312c03

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

files/scripts/run_httpd.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ else
1010
SERVER_NAME="dashboard.${DEPLOYMENT}.packit.dev"
1111
fi
1212

13+
# [FIXME] This is a dirty hack to workaround 403 by the httpd server itself when
14+
# open HTTP/2 connection gets reused
15+
API_SERVER_NAME="${DEPLOYMENT}.packit.dev"
16+
1317
# See "mod_wsgi-express-3 start-server --help" for details on
1418
# these options, and the configuration documentation of mod_wsgi:
1519
# https://modwsgi.readthedocs.io/en/master/configuration.html
@@ -21,6 +25,7 @@ exec mod_wsgi-express-3 start-server \
2125
--ssl-certificate-file /secrets/fullchain.pem \
2226
--ssl-certificate-key-file /secrets/privkey.pem \
2327
--server-name ${SERVER_NAME} \
28+
--server-alias ${API_SERVER_NAME} \
2429
--processes 2 \
2530
--locale "C.UTF-8" \
2631
/usr/share/packit_dashboard/packit_dashboard.wsgi

0 commit comments

Comments
 (0)