hello all!! i am running mandrake 10.0 offical powerpack and have a lamp server running with one site on it, now i want to add another. i have the apache Vhosts.conf configured as such. is this correct?
Code:
NameVirtualHost outside ip
<VirtualHost 192.168.1.xxx:80>
DocumentRoot /var/www/html/site1
ServerName www.site1.com
<Directory "/var/www/html/site1.com">
allow from all
Options +Indexes
</Directory>
ServerAlias site1.com
</VirtualHost>
NameVirtualHost 192.168.1.xxx
<VirtualHost 192.168.1.xxx:80>
DocumentRoot "/home/site2"
ServerName www.site2.com
<Directory "/home/site2">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
with this setup i see the main site when uesing site1.com or site2.com. what i need is to be able to point the second name so it sees the second site folder not the first.. now i have read that i need 2 ip to do this the outside ip and an internal ip. with that said i beleave that i need to have 2 nic cards? if so how do i go about setting this up? i have 2 nic cards installed now and need know what to do next thanks
kwick