File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,11 @@ if [ "${VHOSTGEN_HTTPD_SERVER}" = "nginx" ]; then
148148 env_var_export " WORKER_CONNECTIONS" " 1024"
149149 env_var_export " WORKER_PROCESSES" " auto"
150150fi
151- env_var_export " HTTP2_ENABLE" " 1"
151+ # Apache 2.2 does not have HTTP/2 support
152+ if [ " ${VHOSTGEN_HTTPD_SERVER} " != " apache22" ]; then
153+ env_var_export " HTTP2_ENABLE" " 1"
154+ export HTTP2_ENABLE=0
155+ fi
152156env_var_export " DOCKER_LOGS" " 1"
153157
154158
@@ -196,7 +200,10 @@ if [ "${VHOSTGEN_HTTPD_SERVER}" = "nginx" ]; then
196200 env_var_validate " WORKER_CONNECTIONS"
197201 env_var_validate " WORKER_PROCESSES"
198202fi
199- env_var_validate " HTTP2_ENABLE"
203+ # Apache 2.2 does not have HTTP/2 support
204+ if [ " ${VHOSTGEN_HTTPD_SERVER} " != " apache22" ]; then
205+ env_var_validate " HTTP2_ENABLE"
206+ fi
200207env_var_validate " DOCKER_LOGS"
201208
202209
You can’t perform that action at this time.
0 commit comments