letsencrypt.j2 758 B

123456789101112131415161718192021222324
  1. {% if ansible_prolog -%}
  2. {% from 'templates/ansible/prolog.j2' import prolog with context %}
  3. {{ prolog() }}
  4. {% endif -%}
  5. <IfModule proxy_module>
  6. # Do not proxy ACME challenge responses
  7. ProxyPass /.well-known/acme-challenge/ !
  8. </IfModule>
  9. <IfModule !alias_module>
  10. # Load the alias module, if not loaded already
  11. Include /etc/apache2/mods-available/alias.load
  12. Include /etc/apache2/mods-available/alias.conf
  13. </IfModule>
  14. <IfModule alias_module>
  15. # Serve ACME challenge responses
  16. Alias /.well-known/acme-challenge/ /var/lib/dehydrated/acme-challenges/
  17. </IfModule>
  18. <Directory /var/lib/dehydrated/acme-challenges/>
  19. Options FollowSymlinks
  20. Options -Indexes
  21. AllowOverride None
  22. Require all granted
  23. Satisfy Any
  24. </Directory>