serverapps:security:cert:acmesh:letsencrypt
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
serverapps:security:cert:acmesh:letsencrypt [2024/12/09 08:51] – [Virtual hostの例] hayashi | serverapps:security:cert:acmesh:letsencrypt [2024/12/09 09:36] (現在) – [ACME チャレンジの設定] hayashi | ||
---|---|---|---|
行 26: | 行 26: | ||
==== webroot ディレクトリの作成 ==== | ==== webroot ディレクトリの作成 ==== | ||
- | mkdir -p / | + | mkdir -p / |
- | chown -R www:www / | + | chown -R www:www / |
==== ACME チャレンジの設定 ==== | ==== ACME チャレンジの設定 ==== | ||
行 34: | 行 34: | ||
<file config / | <file config / | ||
location / | location / | ||
- | alias / | + | alias / |
} | } | ||
</ | </ | ||
行 40: | 行 40: | ||
==== Virtual hostの例 ==== | ==== Virtual hostの例 ==== | ||
- | <file - / | + | <file - /usr/local/ |
server { | server { | ||
行 50: | 行 50: | ||
# Let's Encrypt webroot | # Let's Encrypt webroot | ||
- | include includes/letsencrypt-webroot; | + | include includes/acme-webroot; |
} | } | ||
</ | </ | ||
+ | |||
+ | === domainが複数の場合の例 === | ||
+ | |||
+ | server_name 1.mydomain.com 2.mydomain.com 3.mydomain.com; | ||
+ | または | ||
+ | server_name *.mydomain.com *.testmydomain.com; | ||
===== 証明書発行 ===== | ===== 証明書発行 ===== | ||
serverapps/security/cert/acmesh/letsencrypt.1733734289.txt.gz · 最終更新: 2024/12/09 08:51 by hayashi