By Martin Dev
KaizenDevAr
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 : blog.domain.com
Just adding at the top another Server { (info Tutorial) } block?
Tutorial Step 3:
Thanks for advance.
Regards
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!
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 - https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04
It will give you the basics of server blocks as a whole
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.