2010/4/11 Oleh Hrynchuk <oleh.hrynchuk@gmail.com>
äÑËÕÀ, í¦ÛÁ!

óÁÍÅ ÔÅ, ÝÏ ÔÒÅÂÁ. ôÏÞÎÏ ÔÁËÅ ÐÒÁÃÀ×ÁÔÉÍÅ?

îÕ, Ñ ÕËÁÚÁÌ ËÏÎÆÉÇÕÒÁÃÉÀ, ËÏÔÏÒÕÀ ÓÁÍ ÉÓÐÏÌØÚÕÀ.

apache-1.3.41
mod_ssl-2.8.30a
openssl-0.9.8d
š
âÏ ÚÎÁÊÛÏ×, ÝÏ ÐÉÛÕÔØ ÂÕæÍ-ÔÏ SSL-ÓÅÒÔÉƦËÁÔÉ ÎÁ name-based virtual hosts ÎÅ ÐÒÏÈÏÄÑÔØ ÞÉÓÔÏ ¦Ú-ÚÁ ÓÐÅÃÉƦËÉ ÒÏÂÏÔÉ SSL.šô¦ÐÏ, SSL handshake צÄÂÕ×Á¤ÔØÓÑ ÝÅ äï name resolving'a. ôÏÍÕ SSL-ÓÅÒÔÉƦËÁÔ ÄÌÑ ×Ó¦È name-based virtual hosts ×ÉÂÉÒÁ¤ÔØÓÑ ÌÉÛÅ ÐÅÒÛÉÊ ÐÏ ÓÐÉÓËÕ. ¶ÎÁËÛÅ ÓÌ¦Ä ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ ÌÉÛÅ IP-based virtual-hosts.


2010/4/11 Michael Bochkaryov <misha@rattler.kiev.ua>



2010/4/11 Oleh Hrynchuk <oleh.hrynchuk@gmail.com>

äÏÂÒÏÇÏ ×ÅÞÏÒÁ ×Ó¦Í.

ëÏÌÅÇÉ, ÝÏÓØ Ñ ÚÁÔÕÐÉ× ÔÒÏÈÉ.

îÁÇÁÄÁÊÔÅ, ÂÕÄØ-ÌÁÓËÁ, ÑËÉÍ ÞÉÎÏÍ Õ ÆÁÊ̦ extra/httpd-ssl.conf ÐÒÏÐÉÓÕ¤ÔØÓÑ Ë¦ÌØËÁ צÒÔÕÁÌØÎÉÈ name-based ÈÏÓÔ¦× (ÔÏÂÔÏ, ÈÏÓÔ¦×, ËÏÔÒ¦ "×ÉÓÑÔØ" ÎÁ ÏÄÎÏÍÕ IP, ÁÌÅ ÍÁÀÔØ Ò¦ÚΦ ÄÏÍÅÎΦ ¦ÍÅÎÁ)? âÏ ÄÁ×ÎÏ ÎÅ ÚÁÊÍÁ×ÓÑ ÃÉÍ.

ðÒÏÓÔÏ (ÐÏ ÁÎÁÌÏǦ§ Ú extra/httpd-vhosts.conf) ÂÌÏËš<VirtualHost _default_:443> ͦÎѤÔØÓÑ ÎÁ צÄÐÏצÄΦš<VirtualHost www.domain1.com:443><VirtualHost www.domain2.com:443>, ... ?

÷ÏÔ ÔÁË ÐÒÉÍÅÒÎÏ ÒÁÂÏÞÁÑ ËÏÎÆÉÇÕÒÁÃÉÑ ÄÅÌÁÅÔÓÑ ÎÁ ÏÄÎÏÍ IP.

NameVirtualHost *:443

<VirtualHost *:443>
šServerName my.server.name
šDocumentRoot /path/to/server
</VirtualHost>

<VirtualHost *:443>
šServerName my.other.server
šDocumentRoot /path/to/another/server
</VirtualHost>

--
Regards,
Michael Bochkaryov
www.rattler.kiev.ua





--
Regards,
Michael Bochkaryov
www.rattler.kiev.ua