Show Posts

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.


Messages - Gauthier_C

Pages: [1]
1
SSL / Re: Problem with AutoSSL messing with my nginx vhosts settings
« on: August 23, 2020, 03:25:41 AM »
Oh wow! So I need to make a handful dozens of templates, each used once, and also there's a conf editor but it should never be used because any change made in there will be overwritten at the first occasion anyway.

Is it really just me, or is it less than ideal, as far as straightforwardness is concerned?

2
SSL / Re: Problem with AutoSSL messing with my nginx vhosts settings
« on: August 22, 2020, 11:30:22 PM »
using * is a bad config, you need to set up NAT networking in cwp and that will give you a properly configured server.

http://wiki.centos-webpanel.com/default-page-displayed-for-all-domains

Even if I solved this part, it would still remove my drupal-specific lines of config each time, making most of my websites unaccessible due to non-functioning clean URLs.

3
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:

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]