bunkerweb/core/php/confs/server-http/php.conf

15 lines
392 B
Text
Raw Normal View History

2022-06-03 15:24:14 +00:00
{% if REMOTE_PHP != "" or LOCAL_PHP != "" +%}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
2022-08-12 13:22:22 +00:00
include {{ NGINX_PREFIX }}server-http/fastcgi_params;
2022-06-03 15:24:14 +00:00
{% if REMOTE_PHP != "" +%}
set $backend "{{ REMOTE_PHP }}:9000";
fastcgi_pass $backend;
{% elif LOCAL_PHP != "" +%}
fastcgi_pass unix:{{ LOCAL_PHP }};
{% endif %}
fastcgi_index index.php;
}
{% endif %}