Multiple SSL domains on the same IP address and same port?

Better Stack Team
Updated on November 9, 2023

It's possible to host multiple SSL (Secure Socket Layer) domains on the same IP address and port using Server Name Indication (SNI). SNI is an extension to the Transport Layer Security (TLS) protocol, allowing a client to specify the hostname it's attempting to connect to during the SSL handshake process.

SNI enables a server to present multiple SSL certificates on the same IP address and port and allows the server to determine which certificate to use for establishing the secure connection based on the hostname requested by the client.

This means that a single server can host multiple SSL-enabled websites on the same IP address and port, and the server can serve the appropriate SSL certificate corresponding to the requested domain.

Most modern web servers, like Apache, Nginx, and Microsoft IIS, support SNI. However, older browsers or operating systems may not support SNI, so it's essential to consider compatibility when setting up multiple SSL domains on the same IP address and port.

Keep in mind that while SNI is widely supported, some legacy systems might not work seamlessly with this setup. Always consider the requirements and compatibility of your audience when configuring multiple SSL domains on the same IP and port.

Make your mark

Join the writer's program

Are you a developer and love writing and sharing your knowledge with the world? Join our guest writing program and get paid for writing amazing technical guides. We'll get them to the right readers that will appreciate them.

Write for us
Writer of the month
Marin Bezhanov
Marin is a software engineer and architect with a broad range of experience working...
Build on top of Better Stack

Write a script, app or project on top of Better Stack and share it with the world. Make a public repository and share it with us at our email.

community@betterstack.com

or submit a pull request and help us build better products for everyone.

See the full list of amazing projects on github