<HTML>
<HEAD>
<TITLE>Re: [rt-users] _default_ VirtualHost overlap on port 443, the first has precedence</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Try naming the virtual hosts. *:443 means any domain that resolves to that machine will get the first one, since it matches.<BR>
<BR>
Curtis may also be right (never tried two https sites on the same box), but try having the first one be <VirtualHost firstone:443> and the second one <VirtualHost rt:443> and see if it works for you.<BR>
<BR>
<BR>
<BR>
On 8/21/09 11:13 AM, "testwreq wreq" <testwreq@gmail.com> wrote:<BR>
<BR>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Actually, I should have mentioned before that our rt installation is on a different IP.<BR>
<BR>
On Fri, Aug 21, 2009 at 11:09 AM, Curtis Bruneau <curtisb@vianet.ca> wrote:<BR>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Each SSL site pretty much needs to be on it's own IP address, the reasoning is the cert negotiation isn't name based header as apache would. The only other way would be to have them on different ports but then you'd have to specify the port when going to the site.<BR>
<BR>
testwreq wreq wrote:<BR>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>* <BR>
<BR>
I have managed to get it all set up and RT running OK with named virtual host over http. However, I am having problems with getting them to work over https. When I set a virtual host name, it always serves the first listed domain. See settings below. https:firstone serves the correct folder, but https:rt serves firstone's documents<BR>
<BR>
my settings:<BR>
<BR>
<VirtualHost *:443><BR>
<BR>
DocumentRoot "C:/Development/firstone"<BR>
ServerName firstone<BR>
ServerAdmin webmaster@localhost<BR>
ErrorLog logs/ssl/error.log<BR>
TransferLog logs/ssl/access.log<BR>
<BR>
SSLEngine on.......etc<BR>
</VirtualHost><BR>
<BR>
<VirtualHost *:443><BR>
ServerName rt.hostname.com <a href="http://rt.hostname.com/"><http://rt.hostname.com/></a> <a href="http://rt.hostname.com <http://rt.hostname.com/"><http://rt.hostname.com <http://rt.hostname.com/></a> > <BR>
<BR>
DocumentRoot /data/rt3/share/html<BR>
AddDefaultCharset UTF-8<BR>
PerlModule Apache::DBI<BR>
PerlRequire /data/rt3/bin/webmux.pl<BR>
<Location /NoAuth/images><BR>
SetHandler default<BR>
</Location><BR>
ErrorLog logs/ssl_error_log<BR>
TransferLog logs/ssl_access_log<BR>
LogLevel warn<BR>
<Directory /><BR>
SSLRequireSSL<BR>
</Directory><BR>
SSLEngine on<BR>
SSLProtocol all -SSLv2<BR>
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW<BR>
SSLCertificateFile /etc/sslcertificate/server.crt<BR>
SSLCertificateKeyFile /etc/sslcertificate/server.key<BR>
</VirtualHost><BR>
while restarting apache I get a warning << _default_ VirtualHost overlap on port 443, the first has precedence>><BR>
Any suggestions???<BR>
<BR>
Thanks in advance,<BR>
rq<BR>
*<BR>
------------------------------------------------------------------------<BR>
<BR>
_______________________________________________<BR>
<a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a><BR>
<BR>
Community help: <a href="http://wiki.bestpractical.com">http://wiki.bestpractical.com</a> <a href="http://wiki.bestpractical.com/"><http://wiki.bestpractical.com/></a> <BR>
Commercial support: sales@bestpractical.com<BR>
<BR>
<BR>
Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at <a href="http://rtbook.bestpractical.com">http://rtbook.bestpractical.com</a> <a href="http://rtbook.bestpractical.com/"><http://rtbook.bestpractical.com/></a> <BR>
<BR>
<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT></FONT></BLOCKQUOTE></BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_______________________________________________<BR>
<a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a><BR>
<BR>
Community help: <a href="http://wiki.bestpractical.com">http://wiki.bestpractical.com</a><BR>
Commercial support: sales@bestpractical.com<BR>
<BR>
<BR>
Discover RT's hidden secrets with RT Essentials from O'Reilly Media. <BR>
Buy a copy at <a href="http://rtbook.bestpractical.com">http://rtbook.bestpractical.com</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
</SPAN></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>-- <BR>
Drew Barnes<BR>
Applications Analyst<BR>
Network Resources Dept.<BR>
Raymond Walters College<BR>
</SPAN></FONT></FONT>
</BODY>
</HTML>