Openlitespeed server accepts https request but throws 404 error on http request

#1
Recently my domain ssl has expired , i am using certbot to generate certificate , but certbot could not renewal ssl because Openlitespeed accepts https request but throws 404 error on http request with same url , certbot uses http request to verify domain to generate ssl , tried several steps to resolve this issue like,
1.) turning off rewrite control from openlitespeed web server admin panel
2.) adding http before the domain name in virtual host mapping

none of it worked , searched everywhere not found any solution.

Please guide me to resolve this .
 

Attachments

Cold-Egg

Administrator
#2
If you visit the site with http only, does it work? Any redirect in the context, rewrite tab or .htaccess file?
Is it possible to share the config of HTTP listener?
 
#3
hi , thanks for reply.
"If you visit the site with http only, does it work?" -No, only works with https, with http shows 404 like in the image i attached.
"Any redirect in the context, rewrite tab or .htaccess file?" - I might have used some option from openlitespeed admin console for redirect from http to https, but i am not sure which option.

1693193402154.png
I have added only one context and it's for certbot domain verification.

can you guide me with where i can find the .htaccess file ? Thanks
 

Cold-Egg

Administrator
#7
So I guess you are talking about the domain https://stake.tycoondefi.com/ has the cert issue.
In the Virtual host mappings, please update Domains "stake.tycoondefi.com stake.tycoondefi.com/admin" to "stake.tycoondefi.com" and it should start working.

Because the current "stake.tycoondefi.com stake.tycoondefi.com/admin" is incorrect value, you should either put a "," in the middle of it, e.g. "stake.tycoondefi.com, stake.tycoondefi.com/admin", or just "stake.tycoondefi.com".
 
Top