Anyone knows how can I use "include default.d/php.conf" inside a server match block in .platform/conf.d/server.conf, because when I change it directly from the instance it works fine, but when I deploy the app, it's like it's having problem with the paths of the file.
server {
listen 80;
listen [::]:80;
server_name api.servername.com;
root /var/www/html/api/;
...other rules....
# Rewrite urls without .php
location / {
rewrite ^/(.*)$ /$1.php last;
include default.d/php.conf;
}
}
I'm getting this error: open() "/var/proxy/staging/nginx/default.d/php.conf" failed (2: No such file or directory) in /var/proxy/staging/nginx/conf.d/servers.conf:58
It's like its using /var/proxy/staging instead /etc/nginx/
Thanks!