2022-06-03 17:24:14 +02:00

14 lines
337 B
Plaintext

{% 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 %}