Website Babble Webmaster Forums  


Go Back   Website Babble Webmaster Forums > Creating a Website > Web Hosting

Your WB Notifications

Reply
 
LinkBack Thread Tools Display Modes
  #16 (permalink)  
Old 09-08-2007, 10:31 AM
Junior Babbler
 
Join Date: Aug 2007
Posts: 17
cage has a few positive reputation points
Default

But both of my domain names have my hosts IP so how can I change it so they have separate IPs. Is it because I was using A-record instead of DNS? I'm really lost to whether or not what I'm doing is legitimate. I'm sure most hosts have their own nameservers, right? Sorry for the string of questions...
Reply With Quote
  #17 (permalink)  
Old 09-08-2007, 11:10 AM
Junior Babbler
 
Join Date: Sep 2007
Location: south of the mason/dixon
Posts: 11
sm_oldman has a few positive reputation points
Default

cage
please post your domain names and I will take a look at them.
Reply With Quote
  #18 (permalink)  
Old 09-11-2007, 07:20 PM
Junior Babbler
 
Join Date: Aug 2007
Posts: 17
cage has a few positive reputation points
Default

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>
Reply With Quote
  #19 (permalink)  
Old 09-12-2007, 09:52 AM
Junior Babbler
 
Join Date: Sep 2007
Location: south of the mason/dixon
Posts: 11
sm_oldman has a few positive reputation points
Default

Quote:
Originally Posted by cage View Post
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
Reply With Quote
  #20 (permalink)  
Old 09-12-2007, 11:40 AM
Junior Babbler
 
Join Date: Aug 2007
Posts: 17
cage has a few positive reputation points
Default

In response to editing the host file: I thought that this would only cause that website to work on your computer. I am about to give it a try right now and I will let you know if I have any luck.

As far as the last question you said about running your own nameserver... I wasn't aware that this was even a possibility. Perhaps that is the best idea. I will research this and try to figure it out as well. I am almost certain that one of these ideas will work and I will keep you posted.

Thanks sm_oldman!
Reply With Quote
  #21 (permalink)  
Old 09-12-2007, 12:29 PM
Junior Babbler
 
Join Date: Sep 2007
Location: south of the mason/dixon
Posts: 11
sm_oldman has a few positive reputation points
Default

cage
here is some more stuff to chew on

I have done some research on bind and windows without knowing what windows you are running here goes

http://www.dns.net/dnsrd/servers/windows.html
http://ntcanuck.com/
http://www.dns.net/dnsrd/servers/

if you have the option I would suggest you switch to a linux flavor they are more stable and they are not microsoft.

here are a couple of links for you to take a look at.

http://en.wikipedia.org/wiki/Fedora_(Linux_distribution)
http://download.fedora.redhat.com/pu...ra/linux/core/
http://www.webmin.com/
webmin is a http based server admin tool for linux everything that you can do from the command line you can do with webmin

here is a links for the best and fastest way do download fedora
use you ftp client and enter the address ftp.gtlib.gatech.edu you will be downloading 5 iso images that you burn on to cd's for the install.

there is a learning curve with linux but the end result is better than a windows server. Plus fedora comes pre loaded with the most popular internet software, ftp ,bind {dns}, webserver, ssh server, sendmail, plus much more. If you have an old pc at home download and install linux and play around with it you can't hurt anything.
Reply With Quote
  #22 (permalink)  
Old 09-13-2007, 05:20 PM
Junior Babbler
 
Join Date: Aug 2007
Posts: 17
cage has a few positive reputation points
Default

I've looked everywhere and I can't find any good documentation that explains how to use bind. If I could figure out how to use it then I would be set completely but it's really complicated. Could you give me some detail on how you're supposed to configure bind? This would be my last question...
Reply With Quote
  #23 (permalink)  
Old 09-26-2007, 10:09 AM
Junior Babbler
 
Join Date: Sep 2007
Location: south of the mason/dixon
Posts: 11
sm_oldman has a few positive reputation points
Default

Quote:
Originally Posted by cage View Post
I've looked everywhere and I can't find any good documentation that explains how to use bind. If I could figure out how to use it then I would be set completely but it's really complicated. Could you give me some detail on how you're supposed to configure bind? This would be my last question...
Cage
Sorry it has taken me so long to reply but I have been on vacation. I left my laptop, cell phone,and pda at home I needed a break. Have you solved your problem yet? If not let me know and I will try to help.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -6. The time now is 06:12 PM.


 Subscribe to RSS

WB Sponsors

flash chat

Home Jobs Online

Search Engine Marketing

Paid Surveys

Web Design Newcastle

Bookmarking Demon 5



 Subscribe to the Website Babble Feeds

2 Create a Website Homepage | 2 Create a Website Blog


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0