We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Letsencrypt adding extra www. to reference call
Letsencrypt adding extra www. to reference call
Hello,
One of my domains seems to be contaminated, and I don't know how to fix permanently.
A few months back I got an email from the cron stating the following:
I searched for hours and could not find any reference to why it's doubling the www (www.www.mydomain.com). I got around this by completely deleting the domain form the system and re-adding it, waisting hours backing up and reinitializing everything on that domain. I thought this fixed it, but again today, I get the same message, for the same domain. The strange thing is, no other domain has this issue.
Can someone point me in the right direction as to how to fix this permanently, I don't want to have to delete my site every 3 months.
Regards,
Matthew
One of my domains seems to be contaminated, and I don't know how to fix permanently.
A few months back I got an email from the cron stating the following:
Code: Select all
Error: Fetching https://www.www.mydomain.com/.well-known/acme-challenge/(bunch of random chars): Error getting validation data
Can someone point me in the right direction as to how to fix this permanently, I don't want to have to delete my site every 3 months.
Regards,
Matthew
Re: Letsencrypt adding extra www. to reference call
Of course, the second I post this, I had an epiphany... Check the .htaccess file:
The 3rd line which states, no matter what, put a www. in front of the server name... which of course is stupid, cuz if you ask for a http://www.anydomian.com it will push it to https://www.www.anydomain.com. The fourth and fifth lines handle non "www." requests, forcing anydoamin.com to https://www.anydomain.com.
So I updated it:
Seems to work now from a web standpoint... will have to see now if Letsencrypt picks up on the change.
Code: Select all
#To redirect users to the secure version of your site, uncomment the lines below
RewriteCond %{HTTPS} !=on
RewriteRule .* https://www.%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteCond %{SERVER_NAME} !^www\. [NC]
RewriteRule ^(.*)$ https://www.%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
So I updated it:
Code: Select all
#To redirect users to the secure version of your site, uncomment the lines below
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteCond %{SERVER_NAME} !^www\. [NC]
RewriteRule ^(.*)$ https://www.%{SERVER_NAME}%{REQUEST_URI} [R=301,L]