PDA

View Full Version : setting up a virtualhost in apache


flann
03-08-2007, 12:50 PM
Does anyone know how to setup a subdomain in apache? I went through the cpanel and set it up, it looked like it would work fine, I waited a couple of days for the dns to propagate. It isn't working. I looked at the virtualhost directive in my apache conf file and to me everything looks to be there and to be right. There is a virtual host for my subdomain in the conf file, it points to the directory I want it to point to, but it's just not working. Any ideas?

KenJackson
03-23-2007, 10:55 PM
You can divide the problem in half by making sure DNS is setup correctly. Either of these commands should tell you that: host yourdomain.com
dig yourdomain.com If you see your IP address, DNS is setup. If you don't, DNS is the problem.