letsencrypt.j2 748 B

12345678910111213141516171819202122232425
  1. {% if ansible_controlled is defined and ansible_controlled != "" %}
  2. #
  3. # {{ ansible_controlled }}
  4. #
  5. {% endif %}
  6. <IfModule proxy_module>
  7. # Do not proxy ACME challenge responses
  8. ProxyPass /.well-known/acme-challenge/ !
  9. </IfModule>
  10. <IfModule !alias_module>
  11. # Load the alias module, if not loaded already
  12. Include /etc/apache2/mods-available/alias.load
  13. Include /etc/apache2/mods-available/alias.conf
  14. </IfModule>
  15. <IfModule alias_module>
  16. # Serve ACME challenge responses
  17. Alias /.well-known/acme-challenge/ /var/lib/dehydrated/acme-challenges/
  18. </IfModule>
  19. <Directory /var/lib/dehydrated/acme-challenges/>
  20. Options FollowSymlinks
  21. Options -Indexes
  22. AllowOverride None
  23. Require all granted
  24. Satisfy Any
  25. </Directory>