mirror of
https://github.com/nginx-proxy/nginx-proxy
synced 2024-11-08 07:49:22 +01:00
Merge pull request #2497 from nginx-proxy/2496
fix: use fastcgi.conf on alpine and fastcgi_params on debien
This commit is contained in:
commit
290d275a68
@ -264,8 +264,14 @@
|
|||||||
include uwsgi_params;
|
include uwsgi_params;
|
||||||
uwsgi_pass {{ trim $proto }}://{{ trim $upstream }};
|
uwsgi_pass {{ trim $proto }}://{{ trim $upstream }};
|
||||||
{{- else if eq $proto "fastcgi" }}
|
{{- else if eq $proto "fastcgi" }}
|
||||||
root {{ trim .VhostRoot }};
|
{{- if (exists "/etc/nginx/fastcgi.conf") }}
|
||||||
include 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 }};
|
fastcgi_pass {{ trim $upstream }};
|
||||||
{{- if ne $keepalive "disabled" }}
|
{{- if ne $keepalive "disabled" }}
|
||||||
fastcgi_keep_conn on;
|
fastcgi_keep_conn on;
|
||||||
|
Loading…
Reference in New Issue
Block a user