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