certbot/certbot-apache/tests
alexzorin 1e114b4ef8
apache: configure nameless vhosts during auth (#8898)
In the apache2 package on Debian-based distros, the default
000-default.conf virtual host does not include a ServerName.

Depending on the FQDN hostname of the machine and DNS setup, Apache
assigns a name to this unnamed vhost at runtime. As a result, the
Apache config end up with vhosts that have duplicative names.

Previously, Certbot did not identify that the nameless vhost could be
a match for the requested identifier, which would, depending on
configuration load order, cause the authenticator to fail.

This change causes Certbot to include all unnamed vhosts on top of
matched vhosts, during authentication. If no vhosts matched, the
existing behavior remains the same.

* apache: configure nameless vhosts during auth

* vhost is only unnamed if ServerName is not set

* also fix test to only match ServerName

Co-authored-by: Brad Warren <bmw@users.noreply.github.com>
2021-06-21 07:18:29 -04:00
..
apache-conf-files Add Ubuntu 20.10 test farm tests (#8414) 2020-10-28 15:08:16 -07:00
testdata Spelling and grammar fixes (#7695) 2020-01-17 18:55:51 +01:00
augeasnode_test.py Use Python 3 style super (#8777) 2021-04-08 13:04:51 -07:00
autohsts_test.py Command-line UX overhaul (#8852) 2021-05-25 10:47:39 +10:00
centos6_test.py Command-line UX overhaul (#8852) 2021-05-25 10:47:39 +10:00
centos_test.py Use Python 3 style super (#8777) 2021-04-08 13:04:51 -07:00
complex_parsing_test.py Use Python 3 style super (#8777) 2021-04-08 13:04:51 -07:00
configurator_reverter_test.py Use Python 3 style super (#8777) 2021-04-08 13:04:51 -07:00
configurator_test.py Command-line UX overhaul (#8852) 2021-05-25 10:47:39 +10:00
debian_test.py Upgrade pylint (#8855) 2021-05-24 10:02:55 -07:00
display_ops_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
dualnode_test.py Use better asserts. Added notes to style guide. (#8451) 2020-11-12 23:33:02 +01:00
entrypoint_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
fedora_test.py Use Python 3 style super (#8777) 2021-04-08 13:04:51 -07:00
gentoo_test.py Use Python 3 style super (#8777) 2021-04-08 13:04:51 -07:00
http_01_test.py apache: configure nameless vhosts during auth (#8898) 2021-06-21 07:18:29 -04:00
obj_test.py Use better asserts. Added notes to style guide. (#8451) 2020-11-12 23:33:02 +01:00
parser_test.py Upgrade pylint (#8855) 2021-05-24 10:02:55 -07:00
parsernode_configurator_test.py Use Python 3 style super (#8777) 2021-04-08 13:04:51 -07:00
parsernode_test.py Use Python 3 style super (#8777) 2021-04-08 13:04:51 -07:00
parsernode_util_test.py Modifications needed for merging to master 2020-01-06 17:19:33 +02:00
util.py Define OS options by a dedicated object in Apache configurator (#8778) 2021-04-13 11:18:49 -07:00