so currently i have 2 websites hosted on 1 ip...
<VirtualHost 192.168.123.5>
ServerAlias DOMAIN-ONE.com
</VirtualHost>
<IfDefine SSL>
<VirtualHost 192.168.123.5:443>
ServerName DOMAIN-ONE.com
</VirtualHost>
</IfDefine>
AND THEN
<VirtualHost 192.168.123.5>
ServerAlias DOMAIN-TWO.com
</VirtualHost>
<IfDefine SSL>
<VirtualHost 192.168.123.5:443>
ServerName DOMAIN-TWO.com
</VirtualHost>
</IfDefine>
now the problem is that you cannot have 2 ssl hosts defined under the SAME ip, in this case, 192.168.123.5
in the apache conf file, is there anyway to do an if statement?
like this:
if (website = DOMAIN-ONE.com)
{
<IfDefine SSL>
DOMAIN-ONE CONTENTS
</IfDefine>
}
else
{
<IfDefine SSL>
DOMAIN-TWO CONTENTS
</IfDefine>
}
is that possible?
please note that i've already purchases TWO separate ssl certificates for both domains, but it just won't let use it cause of the ip issue.
the only solution i can think of would be to get another NIC card, hook up another connection to the switch with ANOTHER ip like 192.168.123.10, and do it that way.
can you guys think of any other solutions?
p.s. on the current interface, i CAN'T have any ip other than the 192.168.123.5.
<VirtualHost 192.168.123.5>
ServerAlias DOMAIN-ONE.com
</VirtualHost>
<IfDefine SSL>
<VirtualHost 192.168.123.5:443>
ServerName DOMAIN-ONE.com
</VirtualHost>
</IfDefine>
AND THEN
<VirtualHost 192.168.123.5>
ServerAlias DOMAIN-TWO.com
</VirtualHost>
<IfDefine SSL>
<VirtualHost 192.168.123.5:443>
ServerName DOMAIN-TWO.com
</VirtualHost>
</IfDefine>
now the problem is that you cannot have 2 ssl hosts defined under the SAME ip, in this case, 192.168.123.5
in the apache conf file, is there anyway to do an if statement?
like this:
if (website = DOMAIN-ONE.com)
{
<IfDefine SSL>
DOMAIN-ONE CONTENTS
</IfDefine>
}
else
{
<IfDefine SSL>
DOMAIN-TWO CONTENTS
</IfDefine>
}
is that possible?
please note that i've already purchases TWO separate ssl certificates for both domains, but it just won't let use it cause of the ip issue.
the only solution i can think of would be to get another NIC card, hook up another connection to the switch with ANOTHER ip like 192.168.123.10, and do it that way.
can you guys think of any other solutions?
p.s. on the current interface, i CAN'T have any ip other than the 192.168.123.5.