Question
How to use NGINX instead of Apache on DigitalOcean platform?
I believe I saw something whilst searching that you can use NGINX instead of Apache on a Web Service in the DigitalOcean App Platform by adding an nginx.conf file to the root of a project. Despite efforts searching, I can’t find it again, and there’s nothing in the documentation either that I can find.
I tried switching out:
heroku-php-apache2 public/
for:
heroku-php-nginx public/
But the build failed and rolled back. No idea why as the logs provide no more information other than to say it’s failed and rolled back.
In addition to running NGINX thought, as said, I’d also like to be able to have more granular control and the ability to customise the NGINX config. Is this possible?
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.
×