location ~ \.php$ { {% if REMOTE_PHP != "" +%} fastcgi_pass {{ REMOTE_PHP }}:9000; {% elif LOCAL_PHP != "" +%} fastcgi_pass unix:{{ LOCAL_PHP }}; {% endif %} fastcgi_index index.php; }