Do I need a new IP for my SSL website?

Good Day all,

As usually, I need your help about Virtualmin… :slight_smile:

I have set 6 virtual servers for six websites in centOS Linux 5.8. All virtual servers use one IP, 184.175.xx.xx.

Currently I want set SSL in a new virtual server, need your help about:

  1. Do I need a new dedicated IP for my SSL website? If it need, can I set from virtualmin or I must buy a new IP?

  2. I found this tutorial,ssl_and_virtualmin/#adding_a_virtual_ip_address, can you advise other tutorial for a reference?

Thanks in advance for your kind help.

Best regards,


You need one IP address per SSL certificate.

So if you aren’t using SSL with your current IP, you can just enable the SSL feature in your existing domain without changing the IP.


Thanks for your quick respond, Eric.

To access my server, I use https on https://

So, I must buy a new IP, is it right?

On the other hand, if I don’t use https on https://, is it OK for server security?

Thanks in advance… :slight_smile:

Well, I’m assuming port 11201 is your Webmin/Virtualmin installation?

If so, that doesn’t count :slight_smile:

It’s one SSL cert per IP address on a given port… so within Apache, on port 443 – if you aren’t currently using SSL, then just go into Edit Virtual Server -> Enabled Features, and enable the SSL Website feature in order to setup SSL for that domain.


Hi Eric,

I can’t find an option of enable the SSL Website feature in Edit Virtual Server -> Enabled Features.

I changed New HTTPS (SSL) port from port 443 to 80 in Server Configuration> Change IP Address. When I access the url https://, it display Apache 2 Test Page.

Please let me know what can I do, I have bought an SSL certificate from NC.

Thanks for your kind help.


Hmm, is there a reason you changed the SSL port to 80? That’s likely to cause some problems :slight_smile:

The SSL port is port 443 by default, and is what browsers connect to if you begin a URL with “https://”.

I would recommend keeping the HTTP port as 80, and the HTTPS port as 443.

Also, after you reset that, if you’re still not seeing an option to enable SSL – make sure that you’re logging in as root, it’s possible that the Virtual Server owner doesn’t have permission to enable that.


If you upgrade to Centos 6, then you wouldn’t need one ip per ssl. Apache on Centos 6 supports SNI (and it works virtually on all modern browsers)

Hi Eric,

I have changed back to port 443. I also logging as root, but still don’t find an option to enable SSL. Do I need create my virtual server from the first step?

I also tried to stick SSL website in System Settings-> Features and Plugins and get error message:

“Failed to save enabled features : Virtualmin is configured to setup DNS zones, but this system is not setup to use itself as a DNS server. Either add to the list of DNS servers, or turn off the BIND feature on the module config page. It appears that DHCP is being used to dynamically configure your network interfaces, which can cause the DNS servers to be set based on settings provided by the DHCP server. Using a static IP address is strongly recommended with Virtualmin.”

Thanks in advance.


Did you try any of the suggestions in that error message? :slight_smile:

There’s some additional notes on that error here in the section titled “Received Virtualmin error that isn’t listed in /etc/resolv.conf”:

Thanks your advice, but I’m very new in CentOs. After I read some forums, they said it is hard to upgrade, a low success rate. Thanks… :slight_smile:

Hi Eric,

I have followed your instructions:

  1. I logged as root and can’t find /etc/resolv.conf
  2. I try the second step in
  3. ‘System Settings’ -> ‘Virtualmin Configuration’ -> ‘Advanced Settings’, and set ‘Check resolv.conf for this system’ to ‘No’.
  4. Add to the list of DNS servers in Webmin -> Networking -> Network Configuration -> Hostname and DNS client.
  5. Back to Virtualmin, stick SSL website in System Settings-> Features and Plugins… I don’t get Error message anymore.
  6. Edit Virtual Server -> Enabled Features, and enable the SSL Website feature
  7. I can access https://
  8. Currently I’ll do Requesting a Certificate like in,ssl_and_virtualmin/#adding_a_virtual_ip_address
  9. Thanks a lots Eric for your best supports… :slight_smile:

Best regards,