i have an existing working webserver running on apache 1.3.23-14, in a linux redhat 7.3. this linux machine also serves as the mailserver and dns server. this linux machine is behind an adsl router and a cisco firewall. it's public ip address is 22.214.171.124 and it has internal ip address 192.168.0.10.
my existing website is accessible by www.company.com
. i want to host another domain www.company2.com
on the same machine.
i have done the dns record for this www.company2.com
domain, and i think so far everything's is correct. i can send and receive emails for this domain already, and have checked the domain status in www.dnsreport.com
. so the domain name is running.
i tried to read the apache documentation and tried to configure the httpd.conf file, but still can't get anything. only the first domain is working.
Can anyone tell me :
1) configuration needed so that when user type www.company2.com
, they will be redirected directly to the existing www.company.com
2) configuration needed so that www.company2.com
is another separate website hosted by the same machine, ie: have its own set of html files.
i have tried to read other people's questions (those that are similar), but dont really understand and too much of their info makes me confuse, that's why i post this question so that i can focus on my problem and can get guidance.. =)
please explain in simple and step by step language.. i'm a newbie n trying to learn =) thank you in advance!!!