Nginx template config doesn't work

riccardotoniolodevHOBBY

a year ago

The nginx file that can be found at the beginning of this page: https://nixpacks.com/docs/providers/php doesn't work properly. It gives me a lot of errors regarding for example environment variables.
I just wanted to provide my own error pages for error 404, 403 and 500, and I just wanted to locate the index in /Pages/index.php

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

3 Replies

a year ago

It does work, you just need to name it nginx.template.conf


Status changed to Solved railway[bot] 11 months ago


riccardotoniolodevHOBBY

a year ago

Naming it nginx.template.conf, it gives me this error and then crashes:Starting Container

Jun 15 09:47:41

[server:info] Server starting on port 65090

Jun 15 09:47:41

nginx: [emerg] no "events" section in configuration

Jun 15 09:47:43

container event container died


riccardotoniolodevHOBBY

a year ago

My bad, now it works, I weren't adding the events section


Nginx template config doesn't work - Railway Help Station