Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 4th, 2002, 09:52 PM
marron79's Avatar
marron79 marron79 is offline
Rut row Raggy!
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2001
Location: Tornado Alley
Posts: 558 marron79 User rank is Private First Class (20 - 50 Reputation Level)marron79 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 9 h 41 sec
Reputation Power: 8
Question ? about VH's using third party DNS

I just installed the lastest stable version of Apache on my computer (running Windows XP Professional), as well as the latest stable versions of PHP and MySQL. I tested everything on my computer with no problems. I then tested the Virtual Hosting capabilities by pointing one of my domains to my IP address. The domain is hosted by register.com, so DNS is pointed to their servers. The domain change worked and I thought everything was fine. Here's my config...

<VirtualHost *>
ServerAdmin webmaster@twcfan.com
DocumentRoot /www/twcfan.com
ServerName twcfan.com
ErrorLog logs/twcfan.com-error_log
CustomLog logs/twcfan.com-access_log common
</VirtualHost>

But then my customers started complaining that my site wasn't coming up. I opened up Netscape and everything came up fine (and yes I did hit refresh). Then I tried loading my site on my other computer, and indeed the domain was not resolving to my computer (which Apache installed). I have a cable modem through my local cable company and I'm pointing my domain to the IP address that came up when I went to whatsmyip.com (or something like that). I read the docs from the Apache website and they were no help. Whatever I tried either didn't work or created a new problem.

Why would the URL come up fine on my computer's web browser, but not on another computer!? If anyone knows how to fix this problem, please help! I don't want to lease a server again!!

Also, I tried setting up a subdomain and that wouldn't even show up on my computer. What did I do wrong?

<VirtualHost *>
ServerAdmin webmaster@twcfan.com
DocumentRoot /www/twcfan.com/sub
ServerName sub.twcfan.com
ErrorLog logs/twcfan.com-error_log
CustomLog logs/twcfan.com-access_log common
</VirtualHost>

I also tried...
<VirtualHost *>
ServerAdmin webmaster@twcfan.com
DocumentRoot /www/sub/twcfan.com
ServerName sub.twcfan.com
ErrorLog logs/twcfan.com-error_log
CustomLog logs/twcfan.com-access_log common
</VirtualHost>
__________________
Matt

Last edited by marron79 : February 4th, 2002 at 09:55 PM.

Reply With Quote
  #2  
Old February 4th, 2002, 10:22 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yes, your twcfan.com is hosted at register.com with wildcard enabled. And your IP appears to be 68.13.3.64. So the DNS requirement is fine.
As far as vhost configuration, it looks to be fine except a wrong choice of directory for your DocumentRoot and you need to set UseCanonicalName Off globally.
Your problem is that your Apache is not up and running at this moment (Mon Feb 4 20:22:20 PST 2002). Check and see if there is a firewall.

Reply With Quote
  #3  
Old February 5th, 2002, 08:12 AM
marron79's Avatar
marron79 marron79 is offline
Rut row Raggy!
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2001
Location: Tornado Alley
Posts: 558 marron79 User rank is Private First Class (20 - 50 Reputation Level)marron79 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 9 h 41 sec
Reputation Power: 8
Thanks for your reply. I changed the CanonicalName option to Off, and according to Apache, it is running (and with no errors). How do I check if there's a firewall? I know I don't have one. Another guy I know has done the same and has the same ISP...so I know it can be done.

Reply With Quote
  #4  
Old February 5th, 2002, 08:32 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> so I know it can be done

Of course. Like I said, you need to make sure it's running. And open your port 80 at your firewall.
How can I tell?
Check this...
Code:
$ telnet 68.13.3.64 80
Trying 68.13.3.64...
telnet: connect to address 68.13.3.64: Connection refused
telnet: Unable to connect to remote host

Reply With Quote
  #5  
Old February 5th, 2002, 08:46 AM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,635 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 44 m 19 sec
Reputation Power: 77
Send a message via AIM to Hero Zzyzzx
The other issue here is that you probably don't have a static IP- the client you use with the third party DNS has to be running so that it updates whenever your IP changes. So the IP you're trying, freebsd, may not even be the users IP anymore.

Is the "dns update client" running in the background, and if your IP changes, do those changes get reflected in a reasonable amount of time in DNS resolution?

I have a similar system for my own personal server, though I'm using ADSL (and have figured out how to keep my IP from changing, but that's another story. . .)

Reply With Quote
  #6  
Old February 5th, 2002, 09:18 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> The other issue here is that you probably don't have a static IP

I thought so in the beginning but his domain currently hosted at register.com tells me it's likely a static IP.

Here is what I have got just now (no DNS cache is used):
Code:
$ dnsq a twcfan.com dns1.register.com
1 twcfan.com:
123 bytes, 1+1+2+2 records, response, authoritative, noerror
query: 1 twcfan.com
answer: twcfan.com 3600 A 68.13.3.64
authority: twcfan.com 3600 NS dns1.register.com
authority: twcfan.com 3600 NS dns2.register.com
additional: dns1.register.com 600 A 209.67.50.220
additional: dns2.register.com 600 A 209.67.50.241

Reply With Quote
  #7  
Old February 5th, 2002, 10:20 AM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,635 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 44 m 19 sec
Reputation Power: 77
Send a message via AIM to Hero Zzyzzx
I've never heard of cable with a static ip, but I'm not a huge cable guru or anything.

It might be possible that they didn't know thier IP changed, and went erroneously with a DNS service that is usually used for static IPs.

any feedback, marron79?

Reply With Quote
  #8  
Old February 5th, 2002, 11:45 AM
marron79's Avatar
marron79 marron79 is offline
Rut row Raggy!
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2001
Location: Tornado Alley
Posts: 558 marron79 User rank is Private First Class (20 - 50 Reputation Level)marron79 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 9 h 41 sec
Reputation Power: 8
Quote:
I have a similar system for my own personal server, though I'm using ADSL (and have figured out how to keep my IP from changing, but that's another story. . .)


I'm pretty sure that I don't have a static IP (for obvious security reasons by my ISP), but when check out what my IP is, it always comes up with the same IP...even though my modem is setup for automatic IP and DNS. Although my ISP may have a firewall, I can tell you that I do not. Is there anyway of working around this?

Reply With Quote
  #9  
Old February 5th, 2002, 11:58 AM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,635 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 44 m 19 sec
Reputation Power: 77
Send a message via AIM to Hero Zzyzzx
You didn't answer my question
Quote:
Is the "dns update client" running in the background, and if your IP changes, do those changes get reflected in a reasonable amount of time in DNS resolution?


There are two things that are most likely issues here-
1) Your ISP blocks port 80. Who is your ISP? The person you mentioned could be using a different port than 80 for webserving, though this pretty much sucks.

2) You're using static DNS when you have a dynamic IP, making the whole system worthless. Who is your DNS provider, and do they have a clear system for dealing with dynamic IPs? If they don't, you have to get DNS from somwhere else, like www.tzo.com, www.dynu.com, or www.dyndns.org.

Reply With Quote
  #10  
Old February 5th, 2002, 12:14 PM
marron79's Avatar
marron79 marron79 is offline
Rut row Raggy!
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2001
Location: Tornado Alley
Posts: 558 marron79 User rank is Private First Class (20 - 50 Reputation Level)marron79 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 9 h 41 sec
Reputation Power: 8
Register.com is my DNS provider for my domain. I have an "A" record pointed at the IP of my computer that I was given by a traceroute query. I have no idea how their DNS works, but am pretty sure they don't automatic IP updates. How would they know what my IP changes to and when? I have always used them when I leased servers in the past, so I am clueless when it comes to doing it myself. I wouldn't be surprised if my ISP (which is Cox Cable btw) blocked port 80. What other port could I use, and how would I set that up?

Reply With Quote
  #11  
Old February 5th, 2002, 03:15 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
If you still unsure whether you have static or dynamic IP why don't you restart your computer and see if your IP changes. If you are on dynamic, you shouldn't host your domain with Register.com in the first place. You need to find a dynamic DNS hosting like dyndns.org.
Now let's forget the domain, run Apache on another port like 1080, tell your friends to access it via http://68.13.3.64:1080/ (or whatever new IP).
Really, your Apache configuration appears to be fine.

Reply With Quote
  #12  
Old February 5th, 2002, 03:53 PM
marron79's Avatar
marron79 marron79 is offline
Rut row Raggy!
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2001
Location: Tornado Alley
Posts: 558 marron79 User rank is Private First Class (20 - 50 Reputation Level)marron79 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 9 h 41 sec
Reputation Power: 8
My domain would have to be dynamic since others can't view my web page by looking up my IP. I've restarted my computer numerous times since installing Apache and the IP comes up the same. So it has not changed according to traceroute. It looks like I'll have to try something like dyndnsorg.

Reply With Quote
  #13  
Old February 5th, 2002, 04:00 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> and the IP comes up the same

Then that's static and you don't need to switch DNS host.

>> It looks like I'll have to try something like dyndnsorg

No, just use another port like I said previously. If Cox cable is blocking port 80, too bad then just use another port. Your DNS resolution is just fine.

Reply With Quote
  #14  
Old February 8th, 2002, 08:11 AM
marron79's Avatar
marron79 marron79 is offline
Rut row Raggy!
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2001
Location: Tornado Alley
Posts: 558 marron79 User rank is Private First Class (20 - 50 Reputation Level)marron79 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 9 h 41 sec
Reputation Power: 8
I setup a trial account with Dynu and I think I've set everything up right, but I still can't see my web site on another computer. Anyone have experience with Dynu? The weird thing is that my Ip is showing up now as 169.254.101.152...which, if I'm not mistaken is a private address. Any thoughts?

Reply With Quote
  #15  
Old February 8th, 2002, 08:39 AM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,635 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 44 m 19 sec
Reputation Power: 77
Send a message via AIM to Hero Zzyzzx
Well, I dinged your domain twcfan.com, which resolved to the IP address 198.144.7.124 and got the following HTML in return-

Code:
<frameset border=0 rows = "1,*">
<frame src="empty.asp">
<frame src="http://twcfan.com" name="main">
</frameset><frameset border=0 rows = "1,*">
<frame src="empty.asp">
<frame src="http://" name="main">
</frameset>


So, if this is your domain stuff appears to be working.

I use dynu. They're fine, though if I had it to do over again I'd use dyndns.org.

BTW, if you want to find out the IP address you're at, feel free to use

http://www.collispuro.net/cgi-bin/env.pl

which will return to you all the environment variables sent by your browser, HTML encoded.

Have fun. Running a server is a great learning experience, though I think that *nix platforms are more fun.

Reply With Quote
Reply