How do I configure wordpress, apache2 and nginx for maximum speed? I followed this tutorial: 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
Unfortunately wordpress only works on port 8080, and Nginx reports a 404 error on port 80.
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.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Hi there,
It sounds like that your Nginx server block might not be correct. You need to define your
server_name
so it matches your domain name and also you need to make sure that theproxy_pass
rule is correctly set to the Apache backend service.Here is an example:
Also make sure that if you are using your server IP address, to delete the default Nginx server block so that it does not cause any conflicts.
If it is still not working, feel free to share your Nginx server block here.
Best,
Bobby