ansible-collection-autonomy icon indicating copy to clipboard operation
ansible-collection-autonomy copied to clipboard

acmeca host certificates challenge completion fails if redirect http to https is enabled

Open gderber opened this issue 4 years ago • 2 comments

If the site redirects http to https. The challenge completion fails with an error message about not being able to find the site.

Something is weird about it though, because it doesn't seem to be consistent.

<VirtualHost *:80>
        ServerName example.com

  # ACME Certificate
  DocumentRoot /srv/www/example.com
  <Directory /srv/www/example.com/.well-known/>
    Options +FollowSymLinks
    AllowOverride All
    <IfModule !mod_authz_core.c>
      Order allow,deny
      Allow from all
    </IfModule>
    <IfModule mod_authz_core.c>
      Require all granted
    </IfModule>
    DirectoryIndex index.html
  </Directory>

        Redirect / https://example.com
</VirtualHost>

gderber avatar Apr 06 '21 14:04 gderber

Part of the problem may be the line

Redirect / https://example.com

Should be

Redirect / https://example.com/

gderber avatar Jul 06 '21 15:07 gderber

This has been resolved with the exception of drupal sites.

gderber avatar Jul 22 '21 20:07 gderber