Skip to content

Let's Encrypt対応

Mitsuru Mutaguchi edited this page Nov 16, 2017 · 1 revision

https://github.com/NetCommons3/NetCommons3/blob/master/.htaccess

.htaccessを下記のように修正します。

<IfModule mod_rewrite.c>
   RewriteEngine on
   # /.well-known/ is Let's Encrypt
   # Let's Encrypt need http(80) and DocumentRoot/.well-known/
   RewriteCond    %{REQUEST_URI} !(^/.well-known/)
   RewriteRule    ^$ app/webroot/    [L]
   RewriteCond    %{REQUEST_URI} !(^/.well-known/)
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>
Clone this wiki locally