How do I configure Apache to serve my website(s)?

I have Apache downloaded. The sites are registered with GoDaddy.

I want to redirect the nameservers to point to my home IP address. It asks for "nameserver" not IP Address. What is the difference and how do I point it at my home computer?

Also, what folder do I put the files in? There is a folder called "httpd-2.2.22," and in this folder are other folders called "cgi-examples," "conf," "docroot," "error," "icons," "man," and "manual."

Also, how do I configure it to host multiple websites?
 
Your ISP most likely blocks TCP 80.

You should be able to add 'A' records for your domain on Godaddy.
 
You should be able to use GoDaddy DNS to point the A record to your home IP if you have a static IP.

If you have a dynamic IP you could get a hostname to dynamic ip address from a company like afraid.org then use a CNAME in GoDaddy DNS to direct your domain to the dynamic ip hostname from afraid.org

I do the cname redirect thing with afraid.org (using my own dns server) to my dynamic ip at home for some game servers I operate so they have a static hostname to put in to the game and I don't have to update them with the ip whenever it changes.

If you are intent on using your own nameservers. Then you would also have to run BIND9 or another dns server like PowerDNS at your house.

Editing GoDaddy hosted DNS to point the A record to your home IP = https://www.godaddy.com/help/managing-dns-for-your-domain-names-680
 
Yah, Those are GoDaddy's nameservers.

This is not an easy task.

I've seen seasoned 'admins' at companies I work for that just get so lost attempting to do things with DNS.

You'd be better off, easier, just asking your ISP for a static IP, then using godaddy's dns to point the A record to that IP.

And, even then, The cost of a static IP, which you'll likely have to get "business class" internet from your ISP to get, would cost more than just getting a cheap hosting account from somewhere.

Good luck. (hint: dynamic ip to static host name provider = freedns.afraid.org/dynamic/ )

You'll also need to verify, on your residential ISP that you likely have now, that port 80 (http) is not blocked...
 
Last edited:
Linux, look in /etc/apache2/sites-available for the site you are using. If you are unsure, it's probably default. There should be <Directory .... sections that tell you the served directory.

Windows may be the same now, or it may be in <install directory>/httpd.conf. Same deal, look for the Directory sections.
 
Back
Top