I have searched this site and could not find the answer for my simple problem. I setup apache2, php 5, and mysql 5.1 on Red Hat Enterprise Linux 4 (x86_64). Currently, I set it up so that http://mysite.company.com points to our production version of our site. What I want to do is setup http://dev.mysite.company.com to point to our development environment. I tried as such:
$ cat /usr/local/apache2/conf/http.conf
...
NameVirtualHost *:80
<VirtualHost *:80>
ServerName mysite.company.com
DocumentRoot "/var/www"
</VirtualHost>
<VirtualHost *:80>
ServerName dev.mysite.company.com
DocumentRoot "/var/wwwdev"
</VirtualHost>
...
Now, http://mysite.company.com works, but http://dev.mysite.company.com is not found. Should I talk to the IT people to add dev.mysite.company.com to their DNS look up table? What did I do wrong here? You help is appreciated. Thanks.