This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: [1]
1
SSL / Problem with AutoSSL messing with my nginx vhosts settings
« on: August 19, 2020, 04:10:55 PM »
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:
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 :
(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!
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:
Code: [Select]
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 :
Code: [Select]
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!
Pages: [1]