I have installed WAMP 2.1 on my virtual Windows 2008 R2 machine hosted by myhosting.com. I have a web site installed on this server that works fine when I visit using my server's IP address. E.g. http://168.2.2.../mysite

I am trying to add my purchased domain name to Apache and for some reason I cannot make it work. I added the following lines to my Apache - httpd.conf file:

Listen *:80

ServerName www.mydomainame.com:80

# Tells Apache to identify which site by name NameVirtualHost *:8080
# Tells Apache to serve the default WAMP Server page to "localhost" <VirtualHost 127.0.0.1> ServerName localhost DocumentRoot "C:/wamp/www" </VirtualHost> <VirtualHost *.8080>
# The name to respond to ServerName mydomainame.com ServerAlias *.mydomainname.com
# Folder where the files live DocumentRoot "C:/wamp/www"
# A few helpful settings... <Directory "C:/wamp/www"> allow from all order allow,deny
# Enables .htaccess files for this site AllowOverride All </Directory>
# Apache will look for these two files, in this order, if no file is specified in the URL DirectoryIndex index.php index.html </VirtualHost>

I have made sure the Name Servers of my domain are pointing to myhosting.com's name servers

After making the changes and restarting Apache, I can view my site using the IP but not by using my domain name.

I can ping my IP and it works fine. But when I ping my domain name, it comes back with host not found.

Please help

link|improve this question
feedback

1 Answer

Why are you pointing your DNS servers at your hosting company's DNS servers and what do you mean by "pointing"? That's a rather ambiguous term. Do they have an A record for your domain or do your name servers have the A record? What name servers are authoritative for your domain name?

If your name servers are already authoritative for your zone, then all you need to do is add the A records there, you don't need to do anything with your host's DNS servers.

If your name servers are subdomains of the zone that they are authoritative for, then you need to register a glue record.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.