I want to config apache , it has 2 ssl cert for 2 port of apache:
For example:
http://mysite.com:443/
http://mysite.com:444/
with 02 seperate certificate.
If it's possible?
Thanks!
Apache Web Server
Last Comment
laptop1vn
8/22/2022 - Mon
McNetic
No, this is not possible. As the SSL certificate has to be exchanged prior to any other (insecure) communication between client and server, the server can only determine which certificate to be used by the ip address requested by the client. In your case, this ip address would be the same. You have to use different domain names AND different ip addresses for different certificates to be used on the same server.
fosiul01
Hi yah ( i never done 2 ssl in ONe ip)
but its possible according to Ref : apache Cookbook , 7.7. SSL Virtual Hosts
as McNetic said, you need to use different domain such as
so when user will access your site, they will have to define the port number with the site as i said before.
but i think you need to tell your ssl certificate provider taht you will use certificate in diffferent port ,
McNetic
It is not necessary in this scenario to use different ports. If you have different hostnames and different ips, you can use the same port for both virtual servers.
I'm sorry, I don't know what I thought before - oklit is right, it is possible with different ports or different ips. Please excuse my being mistaken :-(.
laptop1vn
ASKER
@oklit:
It's OK, it's very very simple!
I omit "Listen 444"
Thanks verymuch :*