New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Need nginx conf that allows redirect excluding the required let's encrypt folder

Started by wshosted, December 09, 2020, 01:43:15 AM

Previous topic - Next topic

wshosted

I am looking for the correct way to do a nginx conf that does a https redirect while also excluding the folders that AutoSSL requires to reach via http. Currently using standard CWP nginx conf setup, when I add the https return then I believe the Let's Encrypt renewal process fails.

studio4host

default template in nginx of cwp should have location exclude for autossl, like example force-https template
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

wshosted

Thanks so much.

For other newbies like me, there is a GUI method for swapping templates under Webserver Settings -> Webservers Main Conf -> Nginx default vhost template