mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-06 05:22:09 +08:00
Add highlight for fences
@@ -17,7 +17,7 @@ Configure your webserver to respond statelessly to challenges for a given accoun
|
|||||||
1. Configure the web server to return the account key thumbprint:
|
1. Configure the web server to return the account key thumbprint:
|
||||||
### NGINX
|
### NGINX
|
||||||
Add something similar to your `nginx.conf`:
|
Add something similar to your `nginx.conf`:
|
||||||
```
|
```nginx
|
||||||
http {
|
http {
|
||||||
...
|
...
|
||||||
server {
|
server {
|
||||||
@@ -41,7 +41,7 @@ Configure your webserver to respond statelessly to challenges for a given accoun
|
|||||||
```
|
```
|
||||||
### APACHE
|
### APACHE
|
||||||
Add something similar to your `httpd.conf`:
|
Add something similar to your `httpd.conf`:
|
||||||
```
|
```apache
|
||||||
LoadModule php7_module libexec/apache2/libphp7.so
|
LoadModule php7_module libexec/apache2/libphp7.so
|
||||||
...
|
...
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
@@ -73,7 +73,7 @@ Configure your webserver to respond statelessly to challenges for a given accoun
|
|||||||
_NOTE that this approach uses PHP but something similar could be done with CGI, Perl, Ruby or pretty much any other server-side language._
|
_NOTE that this approach uses PHP but something similar could be done with CGI, Perl, Ruby or pretty much any other server-side language._
|
||||||
### HAPROXY
|
### HAPROXY
|
||||||
Add the http-request return rule to your configuration:
|
Add the http-request return rule to your configuration:
|
||||||
```
|
```haproxy
|
||||||
global
|
global
|
||||||
setenv ACCOUNT_THUMBPRINT '6fXAG9VyG0IahirPEU2ZerUtItW2DHzDzD9wZaEKpqd'
|
setenv ACCOUNT_THUMBPRINT '6fXAG9VyG0IahirPEU2ZerUtItW2DHzDzD9wZaEKpqd'
|
||||||
log stderr local0
|
log stderr local0
|
||||||
|
|||||||
Reference in New Issue
Block a user