Report this

What is the reason for this report?

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

Posted on March 5, 2018
MPA

By MPA

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?



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!

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.

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.