summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/fileserver/testdata/foo.php.php/index.php
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2021-06-25 11:28:32 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2021-06-25 11:28:32 -0600
commitb3d35a4995c98cfadeb0c3a356025dbd3984caef (patch)
tree5bffe5ab50efa2f3a18f912b102ace7bced34989 /modules/caddyhttp/fileserver/testdata/foo.php.php/index.php
parent2de7e14e1c5fcc8c846b341583597ab65eaf7156 (diff)
httpcaddyfile: Don't put localhost in public APs (fix #4220)
If an email is specified in global options, a site called 'localhost' shouldn't be bunched together with public DNS names in the automation policies, which get the default, public-CA issuers. Fix old test that did this. I also noticed that these two: localhost { } example.com { } and localhost, example.com { } produce slightly different TLS automation policies. The former is what the new test case covers, and we have logic that removes the empty automation policy for localhost so that auto-HTTPS can implicitly create one. (We prefer that whenever possible.) But the latter case produces two automation policies, with the second one being for localhost, with an explicit internal issuer. It's not wrong, just more explicit than it needs to be. I'd really like to completely rewrite the code from scratch that generates automation policies, hopefully there is a simpler, more correct algorithm.
Diffstat (limited to 'modules/caddyhttp/fileserver/testdata/foo.php.php/index.php')
0 files changed, 0 insertions, 0 deletions