in previous versions I remember an option to remove ip address from listen directive but seems like this option is missing. How to create a new server without disrupting other virtual servers, because once server is added with listen 1.2.3.4:443 its self signed ssl clashes with other virtual hosts?
The server was installed with LEMP with an older version of Virtualmin that had an option to include/exclude ip address from the listen directive in nginx, i.e. that option was disabled and the IP address was not included in the directive. So, the servers were created as follows:
server {
listen 80;
listen 443 ssl;
…
}
The virtualmin was updated regularly and always kept to latest version. I haven’d added any virtual servers for some time. Last week I added new virtual server and the server was added as:
server {
listen 300.300.300.300:80;
listen 300.300.300.300:443 ssl;
…
}
As you can imagine, all ssl certificates of servers withoud IP address were served wrongly. I have searched for that option in the web interface, but unfortunately I could not find it.
Was it moved to another menu or it was removed completely?
Could you please check the “System Settings ⇾ Features and Plugins: Nginx website / Plugin Configuration” page and see if the “Add IP addresses to listen directives” option works for you?