mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-12-24 12:14:23 +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:
|
||||
### NGINX
|
||||
Add something similar to your `nginx.conf`:
|
||||
```
|
||||
```nginx
|
||||
http {
|
||||
...
|
||||
server {
|
||||
@@ -41,7 +41,7 @@ Configure your webserver to respond statelessly to challenges for a given accoun
|
||||
```
|
||||
### APACHE
|
||||
Add something similar to your `httpd.conf`:
|
||||
```
|
||||
```apache
|
||||
LoadModule php7_module libexec/apache2/libphp7.so
|
||||
...
|
||||
<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._
|
||||
### HAPROXY
|
||||
Add the http-request return rule to your configuration:
|
||||
```
|
||||
```haproxy
|
||||
global
|
||||
setenv ACCOUNT_THUMBPRINT '6fXAG9VyG0IahirPEU2ZerUtItW2DHzDzD9wZaEKpqd'
|
||||
log stderr local0
|
||||
|
||||
Reference in New Issue
Block a user