Skip to content

Commit

Permalink
Fix ACME challenge for HTTP to HTTPS redirect server
Browse files Browse the repository at this point in the history
  • Loading branch information
Kissaki committed Aug 7, 2016
1 parent 2429e6b commit bb84a20
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sites-available/example.org.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ server {
rewrite ^ $scheme://example.org$request_uri?;
}

# Enforce HTTPS
# Enforce HTTPS, except for ACME
server {
include includes/listen-http;
include includes/acme-challenge;
server_name example.org;
rewrite ^ https://$server_name$request_uri? permanent;
location / {
rewrite ^ https://$server_name$request_uri? permanent;
}
}

server {
Expand Down

0 comments on commit bb84a20

Please sign in to comment.