OK.
I have two IP addresses and a bunch of domains. One domain I'm going to be using for ecommerce with SSL and is my primary domain. I want this domain to have its own unique IP address.
I have about 7 other domains that I want to share the same secondary IP address.
I've tried a few things but botched the whole thing. I've reverted everything back to the standard way of doing things.
On Ubuntu 11 here.
Code:
<VirtualHost *:80>
ServerAdmin admin@domain1.com
ServerName domain1.com
ServerAlias www.domain1.com
DocumentRoot /var/www/domain1.com
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/domain1.com>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
That's what my current setup looks like for every site. I haven't set up the second IP on my server yet either.