Sage Pointer
New Pleskian
I'm not sure if this happened in 4.8 or was earlier (but i noticed only now).
If I add a Wordpress via wp-toolkit, any subsequent updates to Nginx settings produce a bad nginx config in every subdomain belonging to the same domain where there is at least one Wordpress instance added in wp-toolkit.
For example, if i add Wordpress to subdomain1.example.com and subdomain2.example.com, it generates following config:
And places this code to every subdomain belonging to example.com even where is no Wordpress instance installed.
This breaks other sites, of course.
Expected behavior: the plugin should only generate corresponding lines to subdomains where Wordpress is installed, not adding it to every single config.
Temporary solution: disable wp-toolkit and repair subdomain configs with command:
Please add ability to disable this SEF "optimization" as it makes wp-toolkit destructible if there are multiple subdomains.
If I add a Wordpress via wp-toolkit, any subsequent updates to Nginx settings produce a bad nginx config in every subdomain belonging to the same domain where there is at least one Wordpress instance added in wp-toolkit.
For example, if i add Wordpress to subdomain1.example.com and subdomain2.example.com, it generates following config:
Code:
#extension wp-toolkit begin
set $sef_entry_point /;
if ($uri ~* "^/subdomain1\.example\.com/") {
set $sef_entry_point "/subdomain1.example.com/index.php?$args";
}
if ($uri ~* "^/subdomain2\.example\.com/") {
set $sef_entry_point "/subdomain2.example.com/index.php?$args";
}
error_page 404 = $sef_entry_point;
#extension wp-toolkit end
This breaks other sites, of course.
Expected behavior: the plugin should only generate corresponding lines to subdomains where Wordpress is installed, not adding it to every single config.
Temporary solution: disable wp-toolkit and repair subdomain configs with command:
Code:
plesk repair web -domains-only