Alias Domains in a subfolder cannot be verified for Lets Encrypt
short description
When using nginx, and having a site in a subfolder of the main domain, and having a "last" type rewrite, the letsencrypt plugin cannot verify the domain.
So it is excluded
Going to http://www.openfinancial.com.au/.well-known/acme-challenge produces a 403
correct behaviour
It should be verified and included.
environment
Server OS: debian Server OS version: jessie ISPConfig version:3.1.11
Rewrite config:
if ($http_host = "www.openfinancial.com.au") {
rewrite ^(?!/(sites/openfinancial.com.au|stats|error|\.well-known/acme-challenge))/(.*)$ /sites/openfinancial.com.au/$2 last;
}
insert the output of php -v
here
PHP 5.6.33-0+deb8u1 (cli) (built: Jan 5 2018 15:46:26)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
log entries
12.03.2018-05:49 - WARNING - Could not verify domain www.openfinancial.com.au, so excluding it from letsencrypt request.