logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: WAMP - Windows 2008 R2 Server - Domain Name not working
Author
smussani



Joined: 11 Mar 2011
Posts: 1

PostPosted: Fri 11 Mar '11 22:54    Post subject: WAMP - Windows 2008 R2 Server - Domain Name not working Reply with quote

Hi,
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..

Thanks
Sajjad
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7407
Location: EU, Germany, Next to Hamburg

PostPosted: Wed 16 Mar '11 1:41    Post subject: Reply with quote

How do you handle DNS? Did you add that domain name to your DNS server or to your hosts file?

Can you ping the hostname?
Back to top


Reply to topic   Topic: WAMP - Windows 2008 R2 Server - Domain Name not working View previous topic :: View next topic
Post new topic   Forum Index -> Apache