bloodymage / ansible-collection-autonomy

Ansible collection to install self hosted services
https://bloodymage.org
MIT License
22 stars 3 forks source link

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

Open gderber opened 3 years ago

gderber commented 3 years ago

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 commented 3 years ago

Part of the problem may be the line

Redirect / https://example.com

Should be

Redirect / https://example.com/
gderber commented 3 years ago

This has been resolved with the exception of drupal sites.