Hi, i need help to fix this issue, start from the setup:
CLOUDFLARE -> STRICT HTTPS -> NGINX SSL TERMINATOR -> HTTP PROXY TO APACHE WEB SERVER
I'm not able to obtain a letsencrypt certificate for my ssl terminator.
I've try bot standard nginx certbot end webroot:
sudo letsencrypt certonly --webroot --webroot-path /var/www/html --renew-by-de
fault --email info@domain.com --text --agree-tos -d nxws01-webserver-gcp.domain.com
Result:
Challenge failed for domain nxws01-webserver-gcp.domain.com
http-01 challenge for nxws01-webserver-gcp.domain.com
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: nxws01-webserver-gcp.domain.com
Type: unauthorized
Detail: Invalid response from
https://nxws01-webserver-gcp.domain.com/.well-known/acme-challenge/QekuseWqKAfUq5Le7WKEcCOTyWMOfE76QNikJdFr1Mc
[2606:4700:3033::6815:33c9]: "\r\n404 Not
Found\r\n\r\n404 Not
\r\n
Found
nginx/1.18.0 (Ub"To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
The problem is than webroot try to answer the challeng on webroot-path, but the domain is redirected on apache web server so no one answer the challeng in the ssl terminator.
What are the right way to configure
CLIENT - CLOUDFLARE - SSL TERMINATOR REVERSE PROXY - WEBSERVER?
Both cloudflare and ssl terminator proxy redirect http to https