First commit
This commit is contained in:
commit
fdaacfc5a6
19 changed files with 919 additions and 0 deletions
14
nginx/includes/default-ssl-rdr.conf
Normal file
14
nginx/includes/default-ssl-rdr.conf
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
set $is_redirect "0";
|
||||
|
||||
if ( $scheme = "http" ) {
|
||||
set $is_redirect "1";
|
||||
}
|
||||
|
||||
if ( $uri ~ "^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$" ) {
|
||||
set $is_redirect "0";
|
||||
}
|
||||
|
||||
if ( $is_redirect ) {
|
||||
return 301 https://$server_name$request_uri;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue