I was wondering how I would go about running Nginix on the front end and Apache on the back end. I currently have my ubuntu 16.04 server set up with a LAMP stack and virtual hosts since my droplet has three websites on it. The main website is correctly set up with wordpress installed and all of that. Obviously currently it is only running Apache. Is there any way I can configure Nginix to run on the front end without having to to start from the beginning like outlined in this article ? Also in regards to my plugins such as cache enabler I would just have to add the rules etc?
https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-as-a-reverse-proxy-for-apache

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.

×
1 answer

Hi, you might want to consider managing your server with ServerPilot which installs and configures Nginx as a reverse proxy in front of Apache. There’s a bit more info here:

https://serverpilot.io/community/articles/how-serverpilot-configures-your-lamp-stack.html

You wouldn’t be able to use this for an existing server, though. It would have to be a new server.

Submit an Answer