Merge branch 'jk/httpd-test-updates'
Test update. * jk/httpd-test-updates: t/lib-httpd: increase ssl key size to 2048 bits t/lib-httpd: drop SSLMutex config t/lib-httpd: bump required apache version to 2.4 t/lib-httpd: bump required apache version to 2.2
This commit is contained in:
commit
a674c7edcf
@ -99,16 +99,19 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
HTTPD_VERSION=$($LIB_HTTPD_PATH -v | \
|
HTTPD_VERSION=$($LIB_HTTPD_PATH -v | \
|
||||||
sed -n 's/^Server version: Apache\/\([0-9]*\)\..*$/\1/p; q')
|
sed -n 's/^Server version: Apache\/\([0-9.]*\).*$/\1/p; q')
|
||||||
|
HTTPD_VERSION_MAJOR=$(echo $HTTPD_VERSION | cut -d. -f1)
|
||||||
|
HTTPD_VERSION_MINOR=$(echo $HTTPD_VERSION | cut -d. -f2)
|
||||||
|
|
||||||
if test -n "$HTTPD_VERSION"
|
if test -n "$HTTPD_VERSION_MAJOR"
|
||||||
then
|
then
|
||||||
if test -z "$LIB_HTTPD_MODULE_PATH"
|
if test -z "$LIB_HTTPD_MODULE_PATH"
|
||||||
then
|
then
|
||||||
if ! test $HTTPD_VERSION -ge 2
|
if ! test "$HTTPD_VERSION_MAJOR" -eq 2 ||
|
||||||
|
! test "$HTTPD_VERSION_MINOR" -ge 4
|
||||||
then
|
then
|
||||||
test_skip_or_die GIT_TEST_HTTPD \
|
test_skip_or_die GIT_TEST_HTTPD \
|
||||||
"at least Apache version 2 is required"
|
"at least Apache version 2.4 is required"
|
||||||
fi
|
fi
|
||||||
if ! test -d "$DEFAULT_HTTPD_MODULE_PATH"
|
if ! test -d "$DEFAULT_HTTPD_MODULE_PATH"
|
||||||
then
|
then
|
||||||
|
@ -34,17 +34,6 @@ LoadModule http2_module modules/mod_http2.so
|
|||||||
Protocols h2c
|
Protocols h2c
|
||||||
</IfDefine>
|
</IfDefine>
|
||||||
|
|
||||||
<IfVersion < 2.4>
|
|
||||||
LockFile accept.lock
|
|
||||||
</IfVersion>
|
|
||||||
|
|
||||||
<IfVersion < 2.1>
|
|
||||||
<IfModule !mod_auth.c>
|
|
||||||
LoadModule auth_module modules/mod_auth.so
|
|
||||||
</IfModule>
|
|
||||||
</IfVersion>
|
|
||||||
|
|
||||||
<IfVersion >= 2.1>
|
|
||||||
<IfModule !mod_auth_basic.c>
|
<IfModule !mod_auth_basic.c>
|
||||||
LoadModule auth_basic_module modules/mod_auth_basic.so
|
LoadModule auth_basic_module modules/mod_auth_basic.so
|
||||||
</IfModule>
|
</IfModule>
|
||||||
@ -57,9 +46,7 @@ LockFile accept.lock
|
|||||||
<IfModule !mod_authz_host.c>
|
<IfModule !mod_authz_host.c>
|
||||||
LoadModule authz_host_module modules/mod_authz_host.so
|
LoadModule authz_host_module modules/mod_authz_host.so
|
||||||
</IfModule>
|
</IfModule>
|
||||||
</IfVersion>
|
|
||||||
|
|
||||||
<IfVersion >= 2.4>
|
|
||||||
<IfModule !mod_authn_core.c>
|
<IfModule !mod_authn_core.c>
|
||||||
LoadModule authn_core_module modules/mod_authn_core.so
|
LoadModule authn_core_module modules/mod_authn_core.so
|
||||||
</IfModule>
|
</IfModule>
|
||||||
@ -83,7 +70,6 @@ LockFile accept.lock
|
|||||||
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
|
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
|
||||||
</IfModule>
|
</IfModule>
|
||||||
</IfDefine>
|
</IfDefine>
|
||||||
</IfVersion>
|
|
||||||
|
|
||||||
PassEnv GIT_VALGRIND
|
PassEnv GIT_VALGRIND
|
||||||
PassEnv GIT_VALGRIND_OPTIONS
|
PassEnv GIT_VALGRIND_OPTIONS
|
||||||
@ -123,6 +109,10 @@ Alias /auth/dumb/ www/auth/dumb/
|
|||||||
Header set Set-Cookie name=value
|
Header set Set-Cookie name=value
|
||||||
</LocationMatch>
|
</LocationMatch>
|
||||||
<LocationMatch /smart_headers/>
|
<LocationMatch /smart_headers/>
|
||||||
|
<RequireAll>
|
||||||
|
Require expr %{HTTP:x-magic-one} == 'abra'
|
||||||
|
Require expr %{HTTP:x-magic-two} == 'cadabra'
|
||||||
|
</RequireAll>
|
||||||
SetEnv GIT_EXEC_PATH ${GIT_EXEC_PATH}
|
SetEnv GIT_EXEC_PATH ${GIT_EXEC_PATH}
|
||||||
SetEnv GIT_HTTP_EXPORT_ALL
|
SetEnv GIT_HTTP_EXPORT_ALL
|
||||||
</LocationMatch>
|
</LocationMatch>
|
||||||
@ -205,18 +195,6 @@ RewriteRule ^/intern-redir/(.*)/foo$ /smart/$1 [PT]
|
|||||||
RewriteRule ^/redir-objects/(.*/info/refs)$ /dumb/$1 [PT]
|
RewriteRule ^/redir-objects/(.*/info/refs)$ /dumb/$1 [PT]
|
||||||
RewriteRule ^/redir-objects/(.*/objects/.*)$ /dumb/$1 [R=301]
|
RewriteRule ^/redir-objects/(.*/objects/.*)$ /dumb/$1 [R=301]
|
||||||
|
|
||||||
# Apache 2.2 does not understand <RequireAll>, so we use RewriteCond.
|
|
||||||
# And as RewriteCond does not allow testing for non-matches, we match
|
|
||||||
# the desired case first (one has abra, two has cadabra), and let it
|
|
||||||
# pass by marking the RewriteRule as [L], "last rule, do not process
|
|
||||||
# any other matching RewriteRules after this"), and then have another
|
|
||||||
# RewriteRule that matches all other cases and lets them fail via '[F]',
|
|
||||||
# "fail the request".
|
|
||||||
RewriteCond %{HTTP:x-magic-one} =abra
|
|
||||||
RewriteCond %{HTTP:x-magic-two} =cadabra
|
|
||||||
RewriteRule ^/smart_headers/.* - [L]
|
|
||||||
RewriteRule ^/smart_headers/.* - [F]
|
|
||||||
|
|
||||||
<IfDefine SSL>
|
<IfDefine SSL>
|
||||||
LoadModule ssl_module modules/mod_ssl.so
|
LoadModule ssl_module modules/mod_ssl.so
|
||||||
|
|
||||||
@ -225,7 +203,6 @@ SSLCertificateKeyFile httpd.pem
|
|||||||
SSLRandomSeed startup file:/dev/urandom 512
|
SSLRandomSeed startup file:/dev/urandom 512
|
||||||
SSLRandomSeed connect file:/dev/urandom 512
|
SSLRandomSeed connect file:/dev/urandom 512
|
||||||
SSLSessionCache none
|
SSLSessionCache none
|
||||||
SSLMutex file:ssl_mutex
|
|
||||||
SSLEngine On
|
SSLEngine On
|
||||||
</IfDefine>
|
</IfDefine>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
RANDFILE = $ENV::RANDFILE_PATH
|
RANDFILE = $ENV::RANDFILE_PATH
|
||||||
|
|
||||||
[ req ]
|
[ req ]
|
||||||
default_bits = 1024
|
default_bits = 2048
|
||||||
distinguished_name = req_distinguished_name
|
distinguished_name = req_distinguished_name
|
||||||
prompt = no
|
prompt = no
|
||||||
[ req_distinguished_name ]
|
[ req_distinguished_name ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user