1
0
mirror of https://github.com/nginx-proxy/nginx-proxy synced 2025-07-13 15:34:22 +02:00
nginx-proxy/test/test_virtual-path
Richard Hansen dfd4f54c61 fix: Don't downgrade from https to http if certificate is missing
Before, if a site's certificate was not found, the site was served
over http rather than https.  Failing open like this is problematic
for sites where security is important.  Presumably the user set
`HTTPS_METHOD` to a non-`noredirect` value (or left it unset) for a
good reason; we should honor it even if it means serving error
messages.

WARNING: This change breaks compatibility.  Any vhost where all of the
following are true will fail after this change:

  * `HTTPS_METHOD` is either unset or set to a value other than
    `nohttps`.
  * The vhost does not have its own certificate (`default.crt` doesn't
    count).
  * Clients expect to be able to access the vhost by using plain http
    to nginx-proxy.

To get the previous behavior, set `HTTPS_METHOD` to `nohttps` for the
vhost.
2023-05-14 14:56:43 -04:00
..
alternate.conf feat: Add custom location block to virtual paths 2022-02-24 15:08:17 +01:00
bar.conf feat: Add custom location block to virtual paths 2022-02-24 15:08:17 +01:00
default.conf test: Add test case for location config priority 2022-02-24 15:08:18 +01:00
foo.conf feat: Add custom location block to virtual paths 2022-02-24 15:08:17 +01:00
host.conf test: Add test case for location config priority 2022-02-24 15:08:18 +01:00
path.conf test: Add test case for location config priority 2022-02-24 15:08:18 +01:00
test_custom_conf.py feat: Add custom location block to virtual paths 2022-02-24 15:08:17 +01:00
test_custom_conf.yml fix: Don't downgrade from https to http if certificate is missing 2023-05-14 14:56:43 -04:00
test_forwarding.py test: Add test case for default app redirect 2022-02-24 15:08:18 +01:00
test_forwarding.yml fix: Don't downgrade from https to http if certificate is missing 2023-05-14 14:56:43 -04:00
test_location_precedence.py test: Add test case for location config priority 2022-02-24 15:08:18 +01:00
test_location_precedence.yml fix: Don't downgrade from https to http if certificate is missing 2023-05-14 14:56:43 -04:00
test_virtual_paths.py ci: Add tests for the virtual-path routing 2022-02-24 15:07:02 +01:00
test_virtual_paths.yml fix: Don't downgrade from https to http if certificate is missing 2023-05-14 14:56:43 -04:00