Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple index files in NGINX_INDEX_FILE cause Nginx container startup error #11

Closed
pprishchepa opened this issue Dec 4, 2018 · 1 comment
Assignees
Labels

Comments

@pprishchepa
Copy link
Contributor

pprishchepa commented Dec 4, 2018

Specifying multiple values (index files) in NGINX_INDEX_FILE cause Nginx container startup error:

nginx: [emerg] invalid number of arguments in "fastcgi_index" directive in /etc/nginx/fastcgi.conf:36

It seems it is here https://github.com/wodby/nginx/blob/master/templates/includes/fastcgi.conf.tmpl#L36.

Docker image: wodby/nginx:1.15-5.0.16
Preset: WordPress
NGINX_INDEX_FILE value: index.php index.html

@csandanov
Copy link
Member

We should add index.html by default to wp, drupal, php presets for decoupled frontend cases. And add another env var for fastcgi index file since it may have only single *.php value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants