aboutsummaryrefslogtreecommitdiffstats
path: root/snippets/apache2.conf
blob: 31dd95a8d34c163959d455989867fc59ba5d9b30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Use Apache2 to proxy ACME requests to a locally-bound lacme webserver.
#
# This file needs to be sourced to the server directives (at least the
# non-ssl one) of each virtual host requiring authorization.
# Alternatively, run `a2enconf lacme` and reload apache2.

<IfModule mod_proxy_http.c>
  <Location /.well-known/acme-challenge/>
    ProxyPass unix://@@runstatedir@@/lacme-www.socket|http://localhost/.well-known/acme-challenge/
    Require all granted
  </Location>
</IfModule>