View previous topic :: View next topic |
Author |
Message |
chrooted n00b
Joined: 06 Jun 2008 Posts: 55
|
Posted: Wed Jun 11, 2008 6:57 pm Post subject: www.hostname.com working, but http://hostname.com not . Why? |
|
|
Hello,
I 've got a problem. My website works when I type www.site.com, but when typing http://site.com it's not working, it gives a page error.
why is that, should I change something in Apache?
Thank you! |
|
Back to top |
|
|
poly_poly-man Advocate
Joined: 06 Dec 2006 Posts: 2477 Location: RIT, NY, US
|
Posted: Wed Jun 11, 2008 7:15 pm Post subject: |
|
|
this is probably a DNS issue, actually.
I forget exactly what to do, though.
Are you doing your own DNS, or are you going through someone else?
poly-p man _________________ iVBORw0KGgoAAAANSUhEUgAAA
avatar: new version of logo - see topic 838248. Potentially still a WiP. |
|
Back to top |
|
|
AllenJB Veteran
Joined: 02 Sep 2005 Posts: 1285
|
Posted: Wed Jun 11, 2008 8:15 pm Post subject: |
|
|
It depends what error you're getting. If your web browser is telling you the the domain doesn't exist, then it means it's a DNS issue.
If you're getting an apache error, or your default vhost, then it means you need to add that domain to the virtual host configuration for the site (using ServerAlias).
If you gave us the domain name in question, or described the exact error message you're getting, we'd be able to pinpoint the problem better. |
|
Back to top |
|
|
chrooted n00b
Joined: 06 Jun 2008 Posts: 55
|
Posted: Wed Jun 11, 2008 8:44 pm Post subject: |
|
|
That's just an example, it's not the real domain.
When I click on it, it gives the "cannot display the webpage" error.
ServerAlias is set on there. |
|
Back to top |
|
|
chrooted n00b
Joined: 06 Jun 2008 Posts: 55
|
Posted: Wed Jun 11, 2008 9:12 pm Post subject: |
|
|
Solved by inserting in the domain zone:
www A first_dns_server
domain.com A first_dns_server
Find first_dns_server:
host domain.com (for example) |
|
Back to top |
|
|
|