Quote:
Originally Posted by cage
Well I just readded the A-record a second ago because I deleted it in hopes that it was the problem, but apparently I can't host at all unless I use it. So you might have to wait a couple of days before clicking these links, but here they are.
http://cage1.ath.cx (this one should work now because it's a DynDNS domain)
http://every-day-recipes.com (give this one a day or two)
Here is what I made my Vhosts file look like. Maybe you can spot an error in it.
<VirtualHost 76.5.46.6:80>
ServerAdmin admin@phaced.com
DocumentRoot E:\www\every-day-recipes.com
ServerName every-day-recipes.com
ServerAlias www.every-day-recipes.com
</VirtualHost>
<VirtualHost 76.5.46.6:80>
ServerAdmin admin@phaced.com
DocumentRoot E:\www\cage1.ath.cx
ServerName cage1.ath.cx
ServerAlias www.cage1.ath.cx
</VirtualHost>
|
cage
I did not know you were using a windows server so I had to do a little research here is what I found.
Resolving the DNS issue
Obviously, if you typed http://site1.local in your browser, it would not be found by your Internet provider's DNS server. We're next going to edit another file to work around that. The second file you need to edit is called hosts, with no file extension. It is a Windows system file and it will enable you to enter specific addresses for specific domains instead of using a DNS lookup. The normal location for this file is:
C:\WINNT\system32\drivers\etc\hosts
If you don't find it there, do a search in your windows directory for the word hosts in the file name. The file you want is called hosts, with no file extension. The correct file will begin with the following lines:
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
Once again, in this file, the octothorpe character is a comment marker. Lines beginning with it are comments. In all likelihood, there will be nothing there, except for comments. If there are any other non-commented entries, leave them alone. Just go to the bottom of the file, below all the comments and any existing entries and add the following two lines:
127.0.0.1 site1.local
127.0.0.1 site2.local
That's all you need to do there. Save and close the hosts file.
You're almost done! The only remaining thing you need to do is to re-start the Apache server. You need to do this because Apache only reads the configuration file when it first starts up. Click Start->Programs->Apache HTTP Server->Control Apache Server->Restart. If you don't have that menu item, open a command prompt and change to the Apache directory, and type the following command and press the Enter key:
apache -w -n "Apache" -k restart
You should see a message like this:
The Apache service is restarting.
The Apache service has restarted.
That's it! You're done! Close the command window and start your web browser. In the browser's address bar, type http://site1.local and hit the Enter key. You should now see your local copy of your site1.
Okay, now I'll mention one very small, but possibly important, caveat. When you create the virtual hosts like this, the default http://localhost will no longer work. In many cases, that is unimportant. However, if you're using something like phpMyAdmin, you'll still need it. The solution to that is to create one additional virtual host called "localhost" and points to the original Apache htdocs folder. It might look something like this:
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
DocumentRoot C:\Apache\htdocs
ServerName localhost
</VirtualHost>
Don't forget to include that additional virtual host when you edit the Windows hosts file
I allso did a dns lookup http://www.kloth.net/services/nslookup.php
and found 2 different ip's
Non-authoritative answer:
Name: cage1.ath.cx
Address: 76.5.46.6
Non-authoritative answer:
*** Can't find cage1.ath.cx: No answer
Authoritative answers can be found from:
ath.cx
origin = ns1-2.dyndns.org
mail addr = hostmaster.dyndns.org
serial = 2192575890
refresh = 600
retry = 300
expire = 604800
minimum = 600
Non-authoritative answer:
Name: every-day-recipes.com
Address: 66.244.252.180
Non-authoritative answer:
every-day-recipes.com nameserver = ns1.netfirms.com.
every-day-recipes.com nameserver = ns2.netfirms.com.
Non-authoritative answer:
*** Can't find every-day-recipes.com: No answer
Authoritative answers can be found from:
every-day-recipes.com
origin = ns1.netfirms.com
mail addr = hostmaster.every-day-recipes.com
serial = 1189585320
refresh = 16384
retry = 2048
expire = 1048576
minimum = 2560
you seem to be having some dns issues. Let me ask you a question, if you are running your own httpd server why don't you run your own name server?
hope this helps