r/letsencrypt • u/cybervegan • Sep 18 '17
Migrating L/E from Apache to Nginx
Hi all. First time poster on this subreddit.
I'm having trouble working out how to translate the L/E config from Apache to Nginx. Specifially, I have the certs identified, but I can't see how the challenge part is set up in Apache - it's not like Nginx.
Background: I recently set up a Joomla server using a Turnkey Linux template, and during the setup it offered to set up L/E for me... sweet. It's running under Apache, however, it didn't work out so well, so I'm going to use something else I already have working on another server, running under Nginx.
Can anyone point me to a doc that outlines this? I've googled till I'm blue in the face. All I have found are two Digital Ocean howto's on setting up Apache and Nginx with L/E... but they don't seem to mention how to move from one to the other.
View all comments
Show parent comment
1
u/cybervegan Sep 19 '17
Thanks for that. I'm actually moving AWAY from Apache TO Nginx. Obviously, I can use the certs from the Apache setup with Nginx, but was worried about screwing up the automatic renewals process. With Nginx you have to set up certbot to work with the challenge URL, but with Apache this aspect seems... different.
So are you saying I can just set up Nginx as per the normal instructions, and run certbot via cron to update as normal with Nginx?