Skip to content

Commit

Permalink
Merge pull request #2497 from nginx-proxy/2496
Browse files Browse the repository at this point in the history
fix: use fastcgi.conf on alpine and fastcgi_params on debien
  • Loading branch information
buchdag authored Jul 29, 2024
2 parents 434a089 + 5f4e77b commit 290d275
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,14 @@
include uwsgi_params;
uwsgi_pass {{ trim $proto }}://{{ trim $upstream }};
{{- else if eq $proto "fastcgi" }}
root {{ trim .VhostRoot }};
{{- if (exists "/etc/nginx/fastcgi.conf") }}
include fastcgi.conf;
{{- else if (exists "/etc/nginx/fastcgi_params") }}
include fastcgi_params;
{{- else }}
# neither /etc/nginx/fastcgi.conf nor /etc/nginx/fastcgi_params found, fastcgi won't work
{{- end }}
root {{ trim .VhostRoot }};
fastcgi_pass {{ trim $upstream }};
{{- if ne $keepalive "disabled" }}
fastcgi_keep_conn on;
Expand Down

0 comments on commit 290d275

Please sign in to comment.