Hello, a newb here. A few months ago, I got the idea to build my own server and host my own website from it via Nginx, and so after doing some research, I came across a guide from DigitalOcean on how to configure a Nginx server to act as a reverse proxy for an Apache server which would serve PHP request. I went through the guide and set it up as recommended, however, I am now very confused about how I’m supposed to install WordPress on this and get the two servers to work together. Here’s the guide I followed: [https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-as-a-web-server-and-reverse-proxy-for-apache-on-one-ubuntu-20-04-server#step-7-configuring-nginx-for-apache-s-virtual-hosts](https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-as-a-web-server-and-reverse-proxy-for-apache-on-one-ubuntu-20-04-server#step-7-configuring-nginx-for-apache-s-virtual-hosts)
Please let me know if this is the wrong subreddit or if I’m being really stupid and not understanding what’s really happening. Thanks for the help!
[ad_2]
Under step 6, it says:
> We’ll keep the Nginx web sites in /usr/share/nginx, which is where Nginx wants them by default.
Following these instructions that is where you should install wordpress.
Why the two server setup? Why not just the Apache server?
Use only nginx.
https://spinupwp.com/hosting-wordpress-yourself-setting-up-sites/