I have a computer I need to add a 2nd IP (because one domain name is not controlled by me, and it was pointing to a different IP, but I do not want to have 3 machines up, just 2 DNS which also run the web).
so I can add a 2nd IP through /etc/rc.conf,
but not sure what do it in the httpd.conf:
do I do this?
do I have to set it to listen to both IPs before the virtualhost? how do I do that?
so I can add a 2nd IP through /etc/rc.conf,
but not sure what do it in the httpd.conf:
do I do this?
Code:
NameVirtualHost *:80
<VirtualHost nic.1.ip:80>
ServerAdmin webmaster@x.net
DocumentRoot /usr/home/xyz
ServerName x.net
ErrorLog /usr/httplog/x.err
CustomLog /usr/httplog/x.log common
</VirtualHost>
<VirtualHost nic.2.ip:80>
ServerAdmin webmaster@y.com
DocumentRoot /usr/home/123
ServerName y.net
ErrorLog /usr/httplog/y.err
CustomLog /usr/httplog/y.log common
</VirtualHost>
do I have to set it to listen to both IPs before the virtualhost? how do I do that?