bunkerweb/core/php/confs/server-http/php.conf
2022-08-12 15:22:22 +02:00

15 lines
No EOL
392 B
Text

{% if REMOTE_PHP != "" or LOCAL_PHP != "" +%}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include {{ NGINX_PREFIX }}server-http/fastcgi_params;
{% 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 %}