Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 99985 invoked by uid 500); 20 Aug 2002 06:23:32 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 99841 invoked from network); 20 Aug 2002 06:23:30 -0000 Received: from unknown (HELO pingu.sitesuite.ss) (202.138.222.102) by daedalus.apache.org with SMTP; 20 Aug 2002 06:23:29 -0000 Received: (qmail 27350 invoked by uid 1000); 20 Aug 2002 06:22:14 -0000 Subject: VirtualHost and SSL From: simran To: users@httpd.apache.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.5 Date: 20 Aug 2002 16:22:14 +1000 Message-Id: <1029824534.24015.73.camel@pingu.sitesuite.ss> Mime-Version: 1.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi All, In my httpd.conf i have configuration to the effect of: ========== httpd.conf ================================================================== NameVirtualHost * NameVirtualHost *:443 # # Configuration for site Sample... # ServerName sample.dev.mydomain.com.au DocumentRoot /home/www/sample/docs ServerName sample.dev.mydomain.com.au DocumentRoot /home/www/sample/docs SSLEngine on SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL SSLCertificateFile www/sample/conf/server.crt SSLCertificateKeyFile www/sample/conf/server.key # # Configuration for site Star... # ServerName star.dev.mydomain.com.au DocumentRoot /home/www/star/docs ServerName sample.dev.mydomain.com.au DocumentRoot /home/www/star/docs SSLEngine on SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL SSLCertificateFile www/star/conf/server.crt SSLCertificateKeyFile www/star/conf/server.key ======================================================================== Now the problem i am facing is that when i go to: http://sample.mydomain.com.au and https://sample.mydomain.com.au/ All is well, however, https://star.dev.mydomain.com.au/ gives me back the SSL certificate of the sample site (http works fine, only https is playing up?) If i swap the order, then i can see that the first certificate in the first virtualhost that listens to 443 is actually being used, what makes it most confusing is that the the correct document root is always used! Has anyone run across such a problem before? I guess my main questions are: * Can i use SSL on Name Based Virtual Hosts (all using the same IP) * If so, can someone please point me to an example (especially if the sample shows uses of 'VirtualHost *:443' thanks, simran. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org