I can’t work out what is up with this. LE works fine on other templates, but not wordpress.tpl. I get:
https://acme-v02.api.letsencrypt.org/acme/chall-v3/14830357048/Nqc1fg
As you can see, the file gives the wrong URL:
http://www.geekanimal.com/.well-known/acme-challenge/Z9rayhiXoa2VgfuexavZugkfUghP5VEahhhXlGPGzXo
(it also seems to auto-redirect to https , even when I didn’t ask it to?)
My template seems ok as far as I can see:
#=======================================================================#
# Default Web Domain Template #
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
#=======================================================================#
server {
listen 139.162.224.153:80;
listen [::]:80;
server_name geekanimal.com www.geekanimal.com www.geekanimal.co.uk geekanimal.co.uk test.geekanimal.co.uk;
root /home/geekanimal/web/geekanimal.com/public_html;
index index.php index.html index.htm;
access_log /var/log/nginx/domains/geekanimal.com.log combined;
access_log /var/log/nginx/domains/geekanimal.com.bytes bytes;
error_log /var/log/nginx/domains/geekanimal.com.error.log error;
include /home/geekanimal/conf/web/geekanimal.com/nginx.forcessl.conf*;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ /\.(?!well-known\/) {
deny all;
return 404;
}
location ~* /(?:uploads|files)/.*.php$ {
deny all;
return 404;
}
location / {
try_files $uri $uri/ /index.php?$args;
location ~* ^.+\.(ogg|ogv|svg|svgz|swf|eot|otf|woff|woff2|mov|mp3|mp4|webm|flv|ttf|rss|atom|jpg|jpeg|gif|png|ico|bmp|mid|midi|wav|rtf|css|js|jar)$ {
expires 30d;
fastcgi_hide_header "Set-Cookie";
}
location ~ [^/]\.php(/|$) {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $uri =404;
fastcgi_pass unix:/run/php/php7.4-fpm-geekanimal.com.sock;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
include /home/geekanimal/conf/web/geekanimal.com/nginx.fastcgi_cache.conf*;
if ($request_uri ~* "/wp-admin/|wp-.*.php|xmlrpc.php|index.php|/store.*|/cart.*|/my-account.*|/checkout.*") {
set $no_cache 1;
}
if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in|woocommerce_items_in_cart|woocommerce_cart_hash|PHPSESSID") {
set $no_cache 1;
}
}
}
location /error/ {
alias /home/geekanimal/web/geekanimal.com/document_errors/;
}
location /vstats/ {
alias /home/geekanimal/web/geekanimal.com/stats/;
include /home/geekanimal/web/geekanimal.com/stats/auth.conf*;
}
include /etc/nginx/conf.d/phpmyadmin.inc*;
include /etc/nginx/conf.d/phppgadmin.inc*;
include /home/geekanimal/conf/web/geekanimal.com/nginx.conf_*;
}
I’m not sure what else to try?
FWIW, this was a domain we moved from a Vesta server, to this Hestia server
TIA
Andy