Forum Moderators: phranque

Message Too Old, No Replies

Major Apache Help

trying to use apache

         

jewlz442

10:45 pm on Jan 25, 2006 (gmt 0)

10+ Year Member



Okay Hi everyone, I am going to be honest I am very beginner with web sites. I have been trying to use Apache for some time now. I have a domain from Go Daddy.com and want to put it to use with Apache as my host! So far I have been having problems having my site show up. It will work when I type [localhost...] or my gateway ip but not my domain. I do not really understand ports or virtual servers but I know I could figure it out if some walked me through it. Please help!

jdMorgan

1:21 am on Jan 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



jewlz442,

Welcome to WebmasterWorld!

OK, I'll start the ball rolling:

What version of Apache are you on?
Where is your name server?
Have you configured a DNS A record to point to your public IP address?
Is your router (gateway) configured to forward requests from the public IP address (the internet) to your local machine?
Have you defined a ServerName in httpd.conf yet?

You will actually need two different kinds of setup: One that allows the public to access your site from the internet, and another simpler one that will allow you to access your site from your local area network. This latter can be accomplished by assigning your domain name to the IP address of the server computer in the 'hosts' file (no extension) of each computer on your LAN. The former involves setting up your DNS settings properly, so that internet users can type your domain name to reach your IP address.

Jim

jewlz442

5:35 pm on Jan 26, 2006 (gmt 0)

10+ Year Member



Hi Jim, okay I use Apache 2.0.55.

When it comes to server's I am really confused..
I have a router downstairs with my other computer (on my network) and so far I've changed my settings to private port:80 public port:80 I don't know if this is right, If my router is connected to a computer in my network and not mine is this okay? As for the rest I havn't because I have no idea how to do them. I havn't configued anything in the file.

Thanks

Matt Probert

5:44 pm on Jan 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It will work when I type [localhost...] or my gateway ip but not my domain.

This sounds like a DNS issue.

In simple terms, DNS is a system whereby domain names are recorded against their IP addresses, a bit like a phone directory. When you type in a domain name to your browser, the browser asks the local DNS computer for the corresponding IP address, and then accesses that IP address.

You have a domain name, you have an IP address for your server, now you need to tell the world's DNS servers that your domain name points to your IP address. I recommend you go back to the people who rehistered your domain name and ask them to help you with this.

Matt

jewlz442

6:01 pm on Jan 26, 2006 (gmt 0)

10+ Year Member



Thanks for your help Matt.

I have emailed them :) Hopefully this help!

jewlz442

3:28 am on Jan 28, 2006 (gmt 0)

10+ Year Member



One question: Would I forward it to my LAN or WAN?

Thanks

jdMorgan

4:08 pm on Jan 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Forward what?

Point the domain name to your WAN IP address using the DNS A record. Then port-forward port 80 of the WAN address to the LAN IP address of your local server.

Jim

Matt Probert

4:47 pm on Jan 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



One question: Would I forward it to my LAN or WAN?

As I mentioned, a "domain name" is (in simple terms) an easy way of referencing an IP address. Like tekephone numbers, all IP addresses are unique. BUT in a LAN, you can use the same IP addresses as someone else in the world, just like on a private in-office telephone exchange you can use whatever numbers you like.

In WWW terms, your LAN probably has a single IP address which is supplied by your ISP, and which is assigned to your router (that box your PCs plug into bia their network cables). It is this IP address, the one allocated by your ISP, that you assign to your domain name. When a request comes along from a far-off computer, it gets your IP address from the DNS record for your domain name, and the request arrives at your router, which in turn by some magic (<g>) routes the request to the PC running the http server (Apache).

Regards

Matt