Add PHP to server block configuration file with Reverse Proxy

I am trying to install PHP and I in the final step of server block configuration file.

The situation is I already updated the /etc/nginx/sites-available/default with working Reverse Proxy.

How modify my file to add PHP without affect the Reverse Proxy? Note: Any Reverse Proxy is working at Port:80 and a will Install Wordpress at subdomain :

Just adding at the top another Server { (info Tutorial) } block?

Tutorial Step 3:

Thanks for advance.


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.

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.

Hi @kaizendevar,

Yes, you are correct, you’ll just need to add the server block at the top. You can add it to different configurations as well by adding it to the specific configuration file.

If you are unsure about Nginx server blocks, I’ll recommend going through the following tutorial -

It will give you the basics of server blocks as a whole