Additional FastCGI Params

I tried to add additional fastcgi params via Virtualmin (NGinx with PHP-FPM). But Virtualmin adds the params to globale site not to the selected URL Path. Please see this video:

A second thing is, if you want to change the URL Path, the following error message apears:

"Failed to save location : Nothing entered for field : Default root directory" but the folder is not set by default...

And a third thing is, if you change the url path from ".php$" to "^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|core/templates/40[34]).php(?:$|/)" as suggested by nextcloud documentation, virtualmin can not determine the PHP mode under "server configuration" --> "Website Options"...

Closed (fixed)


Assigned: » Unassigned

Ok, I see the bug here - this will be fixed in the next release of Virtualmin's Nginx plugin.

Status: Active » Fixed

Are all three problems solved?

Only the first two - the third one is not really solvable, as Virtualmin expects that there is a location block that matches ONLY .php files.

What if you search for the complete proxy_pass string instead of "php" in url path?

Seems like that could match other blocks that setup proxying for non-PHP apps. I'd recommend not following nextcloud's advice in this case.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.