Hello,
New user here, hope I'm posting in the right forum and all that.
I have a problem with SSL in CWP, using nginx as my main Web server. Each time a certificate is renewed, be it manually from CWP's appropriate page or automatically using AutoSSL, my per-vhosts nginx conf files are modified.
Indeed, in /etc/nginx/conf.d/vhosts, I have several vhosts conf files that contain, among other things, the following lines:
server {
listen *:443 ssl http2;
the "listen *" is necessary because my server is NATed by my cloud provider. Listening only via the public IP does not work.
It also contains some specific config lines necessary for Drupal's "clean URLs" to work.
Yet, each time a certificate is renewed, the corresponding vhost config files are regenerated to their default settings, with these lines reverted to :
server {
listen 51.xx.xx.xx:443 ssl http2;
(where 51.xx.xx.xx is the public IP of my server). Thus, nginx stops listening properly for the corresponding domain/subdomain and everything falls apart. Plus I have to reenter the Drupal-compatibility workaround lines in each vhost.
Is there a way to fix that?
Thanks in advance!