Question

Can I setup Nginx reverse proxy on top of existing site?

Hello,

I have a WordPress site on apache web server with Let’s Encrypt certbot running. Is it possible to setup Nginx reverse proxy on top of existing setup?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Yes, you can do this in a single droplet or in a multi-droplet configuration.

In in a single droplet config you will need to update your Apache config for your WordPress site updating the port number. This could be anything really that does not conflict with another service - for example 81 or 8080

Next you will need to install NGINX

Then to handle your SSL you would need to perform a setup like the following

One change in the above is that you will be operating with only one application server (Apache) as your backend unless you decide to add more.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Yes, you can do this as I have done that with my website too. Moreover, you would get good results if you use load balancer with SSL.