You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello all.
Using the nginx 1.5-5.0.18 I can set the default index file other than index.php with the environment variable NGINX_INDEX_FILE, with NGINX_VHOST_PRESET: php
Unfortunately if I try to use any other version from 1.15-5.1.0 and above this doesn't work. Of 'course none of the available versions of 1.17 works as well.
Then change that happened at the php preset is at line 5 where {{ $index := (getenv "NGINX_INDEX_FILE" "index.php") }}
cahnged to {{ $index := (getenv "NGINX_FASTCGI_INDEX" "index.php") }}
As a result of the above is to have a different file mentioned at the produced preset.conf file inside /etc/nginx, where on every version from 5.1.0 there is the following line try_files $uri /index.php?$args;
instead of try_files $uri /front.php?$args;
For the above I set the NGINX_INDEX_FILE: front.php
Of 'course if I set both ENV variables the same file, it works just fine. i.e.
NGINX_INDEX_FILE: 'front.php'
NGINX_FASTCGI_INDEX: 'front.php'
Is this intentional or a mistake? I am asking because the documentation doesn't mention it anywhere.
The text was updated successfully, but these errors were encountered:
Hello all.
Using the nginx 1.5-5.0.18 I can set the default index file other than index.php with the environment variable NGINX_INDEX_FILE, with NGINX_VHOST_PRESET: php
Unfortunately if I try to use any other version from 1.15-5.1.0 and above this doesn't work. Of 'course none of the available versions of 1.17 works as well.
Then change that happened at the php preset is at line 5 where
{{ $index := (getenv "NGINX_INDEX_FILE" "index.php") }}
cahnged to
{{ $index := (getenv "NGINX_FASTCGI_INDEX" "index.php") }}
As a result of the above is to have a different file mentioned at the produced preset.conf file inside /etc/nginx, where on every version from 5.1.0 there is the following line
try_files $uri /index.php?$args;
instead of
try_files $uri /front.php?$args;
For the above I set the NGINX_INDEX_FILE: front.php
Of 'course if I set both ENV variables the same file, it works just fine. i.e.
NGINX_INDEX_FILE: 'front.php'
NGINX_FASTCGI_INDEX: 'front.php'
Is this intentional or a mistake? I am asking because the documentation doesn't mention it anywhere.
The text was updated successfully, but these errors were encountered: