Could you show output of command?
service nginx configtest
The configtest command does result in "OK". However, this is something for Parallels to consider:
a) the command service nginx configtest only tests (apparently) the /etc/nginx/nginx.conf file (and format thereof),
b) the /etc/nginx/plesk.conf.d/server.conf and /etc/nginx/plesk.conf.d/webmail.conf remain "broken", that seems to be the case and this is somewhat contradictory, given that
- (on the one hand) the extension "Webserver Configurations Troubleshooter" indicates errors, and
- (on the other hand) nothing seems to be wrong with the format of these conf files.
Finally, a remark has to be made: in the meantime some issues with bind are found to be related to (strange) apparmor (behavior) and not nginx.
In the plesk installer script, Parellels should allow for checking apparmor profiles (that impede bind9 service from starting) AND automatically applying the solution to problems caused by apparmor and bind9: add the line "/var/named/run-root/** rwm," to /etc/apparmor.d/local/usr.sbin.named file.
However, that does not resolve three major nginx issues:
1) messy server.conf and webmail.conf files when changing IP (double entry of IPs),
2) restarting nginx and/or regenerating scripts does not handle IP changes well,
3) in some cases, nginx conf scripts are not updated at all,
and that is probably a hint towards a solution for the nginx issues encoutered.
Following that hint, I (just) found out that the rereading the IP (Tools&Settings, IP addresses) is a "ad-hoc solution":
a) rereading correct (removing incorrect) IP addresses has to been done manually,
b) one correct IP address AND regenerating config files with the "Webserver Configurations Troubleshooter" extension does result in proper config files, although nginx error messages remain for all incorrect IP adresses that have not been removed,
and hence, try rereading correct AND removing incorrect IP addresses, FOLLOWED by regenerating nginx conf files.
In conclusion, both the (original) bind9 service issues and the nginx error issues can be resolved fairly easily.
However, Parallels should prevent this kind of manual adjustments, so I am asking Igor or Sergey U. the following:
- why not checking for apparmor at installation of the Bind9 module of Plesk Panel and applying the line "/var/named/run-root/** rwm," in /etc/apparmor.d/local/usr.sbin.named file?
- why not checking for correct IP addresses AND regenerating nginx files at the start of psa service? (the removal of incorrect IP addresses can be done manually)?
That should make life a lot more easy for most of Plesk users (and it is a simple modification).
Kind regards.....