deactivate standard test page when SSL active
This commit is contained in:
parent
166419490a
commit
4ec127184d
@ -33,10 +33,16 @@ if [ "$TLS13_ONLY" = FALSE ]; then
|
||||
/etc/nginx/config/mozIntermediate_ssl.conf
|
||||
|
||||
# activate SSL test server block if it exists
|
||||
if [ -f "/etc/nginx/sites/05-test-secured.conf" ]; then
|
||||
if [ -f "/etc/nginx/sites/05-test_secured.conf" ]; then
|
||||
mv /etc/nginx/sites/05-test_secured.conf.disabled \
|
||||
/etc/nginx/sites/05-test_secured.conf
|
||||
fi
|
||||
|
||||
# deactivate standard test server block if it exists
|
||||
if [ -f "/etc/nginx/sites/05-test_nonsecured.conf" ]; then
|
||||
mv /etc/nginx/sites/05-test_nonsecured.conf \
|
||||
/etc/nginx/sites/05-test_nonsecured.conf.disabled
|
||||
fi
|
||||
fi
|
||||
elif [ "$TLS13_ONLY" = TRUE ]; then
|
||||
if [ -f "/certs/fullchain.pem" ] && \
|
||||
@ -49,10 +55,16 @@ elif [ "$TLS13_ONLY" = TRUE ]; then
|
||||
/etc/nginx/config/mozModern_ssl.conf
|
||||
|
||||
# activate SSL test server block if it exists
|
||||
if [ -f "/etc/nginx/sites/05-test-secured.conf" ]; then
|
||||
if [ -f "/etc/nginx/sites/05-test_secured.conf" ]; then
|
||||
mv /etc/nginx/sites/05-test_secured.conf.disabled \
|
||||
/etc/nginx/sites/05-test_secured.conf
|
||||
fi
|
||||
|
||||
# deactivate standard test server block if it exists
|
||||
if [ -f "/etc/nginx/sites/05-test_nonsecured.conf" ]; then
|
||||
mv /etc/nginx/sites/05-test_nonsecured.conf \
|
||||
/etc/nginx/sites/05-test_nonsecured.conf.disabled
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user