mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-17 14:08:33 +00:00
14 lines
No EOL
337 B
Text
14 lines
No EOL
337 B
Text
{% if REMOTE_PHP != "" or LOCAL_PHP != "" +%}
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
}
|
|
location ~ \.php$ {
|
|
{% 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 %} |