aboutsummaryrefslogtreecommitdiffstats
path: root/snippets/apache2.conf
blob: 69d80a7777713bfcdc31e7f5fea84374ae79dcab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Use Apache2 to serve ACME requests; either directly, or by passing
# them over to a locally-bound lacme webserver component.
#
# 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.


# Pass ACME requests to lacme's webserver component
<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>


## Alternatively, you can let Apache2 serve the requests by
## setting 'challenge-directory' to '/var/www/acme-challenge' in
## lacme's configuration file and uncomment the following:

#<IfModule mod_alias.c>
#  Alias /.well-known/acme-challenge/ /var/www/acme-challenge/
#  <Directory /var/www/acme-challenge/>
#    Options none
#    AllowOverride none
#    Require all granted
#  </Directory>
#</IfModule>