SSL and vHost relationship

I public path change on vHost file. I try to get SSL after changing the path. Cannot get the SSL certificate. Path change on vHost does not include SSL. But if I restore it; SSL is successfully received. I synchronize the site root folder to the “Laravel public” folder. This is necessary for me. How do I do this radical change with SSL ? The only problem is requesting SSL after vHost path change.

Does anyone know about this ?

you add a virtualhost context for .well-known from litspeed admin panel or via directly editing the virtualhost conf which should look like

context /.well-known {
location $VH_ROOT/public_html/.well-known/
allowBrowse 1
enableExpires 1

rewrite {

}
addDefaultCharset off

phpIniOverride {

}
}

so this will specifically check the SSL verification from public_html/.well-known/acme-challenge/ even if you change the document root for the site .

I tried this and it didn’t work. :\

I got this somewhat working (verification still errors) but I can access mysite.com/.well-known. I just had to modify the .htaccess file of my website to skip any queries starting with .well-known.