|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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. |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
||||
|
||||
|
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.
|
|
#4
|
|||
|
|||
|
>> 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 |
|
#5
|
||||
|
||||
|
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. . .) |
|
#6
|
|||
|
|||
|
>> 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 |
|
#7
|
||||
|
||||
|
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? |
|
#8
|
||||
|
||||
|
Quote:
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? |
|
#9
|
||||
|
||||
|
You didn't answer my question
Quote:
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. |
|
#10
|
||||
|
||||
|
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?
|
|
#11
|
|||
|
|||
|
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. |
|
#12
|
||||
|
||||
|
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.
|
|
#13
|
|||
|
|||
|
>> 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. |
|
#14
|
||||
|
||||
|
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?
|
|
#15
|
||||
|
||||
|
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. |