Forum Moderators: phranque

Message Too Old, No Replies

apache name based virtual hosting can not use ssl?

name based virtual hosting can not use ssl

         

paranpin

11:04 pm on Apr 17, 2005 (gmt 0)



Is it really that name based virtual hosting in Apache can not use SSL? Every time we go in to https mode it take us to back to the dafault website. Is this phappening because the name based virtual hosting in Apache does not support SSL?

I have find this in Apache website.

* Name-based virtual hosting cannot be used with SSL secure servers because of the nature of the SSL protocol.

[httpd.apache.org...]

sitz

11:27 am on Apr 18, 2005 (gmt 0)

10+ Year Member



Mostly. You can have one (and only one) name-based vhost doing ssl in your httpd.conf. Technically, it's an IP-based virtualhost, however since it'll be the only 'name-based' vhost running on port 443, it will work. If you want to have multiple ssl instances configured under the same Apache instance, one or more of the following will need to be unique:

  • IP address
  • port number

    This is because SSL negotiation takes place before Apache sees the Host: header, which is how Apache knows which <VirtualHost> block to send the request to.

  •