mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
15 lines
No EOL
392 B
Text
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 %} |