Johan Bernhardsson
Johan Bernhardsson
For me neither works. Everything in the config is correct but still for some reason the error is there. i have checked several times that the data directory is not...
curl -I https://.ddns.net/mnt/ncdata/.ocdata HTTP/2 404 expires: Thu, 19 Nov 1981 08:52:00 GMT pragma: no-cache
This is strange. Curl gives a 404 but the code it self suggest that its getting a 200 ok.
I have been testing around more. I added debug to the actual check itself to se what url and what host it checks. On this system it is only one...
Found it! I dont know why i missed this. Rewrite rule on port 80 for https generates a 301 as response. That is why its failing.
it tests for missconfiguraton. Imagine if you forgot to protect stuff on port 80 but had a perfect config for ssl.
you can add a redirect without generationg a 301 and it would work. Either a better rewrite rule or a Redirct statement
@Tangeek42 form my tests i found that a 301 on port 80 made the test fail. It does test both 80 and 443 for the hostname.
@Tangeek42 yepp. If you change the rewrite so it doesnt send a 301 the problem is solved.
change the rewrite to this: RewriteEngine On RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [END,NE,R=permanent]