Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

domain to apache

Status
Not open for further replies.

syssin

IS-IT--Management
Feb 23, 2011
1
BE
Hi!

I'm sorry for this very stupid question, but I really can't figure this out.. Google probably has had a peek thanks to me the last hours.

My apache server works perfect, I have a fixed external IP and my firewall forwards everything fine. Everything works as it should.
Now, I've purchased a domainname and I want to point it to apache.

On the controlpanel at EasyHost.be I have quite some options. First I just forwarded my domain to the IP without cloaking. That only sent me to the IP and the address bar just showed the IP. Just a forward.

I've experimented a bit with all the options and I've read like 9999999999 threads about VirtualHosts on the internet but I just can't get it to work.

On EasyHost.be I have 3 tabs:
- Webforwarding (normal and cloaked)
- Nameservers (I can choose between hosting nameservers, forwarding ns and my own ns)
- Edit DNS records (A-records, CNAME-records, MX-records, TXT-records)

I understand that the httpd.conf file also has to be set up. But first I have to setup the domain correctly. I think..

Can someone please help me out?

Thanks!
 
If you want to do it right you'll need to setup a DNS zone for your domain. Usually you can use the DNS provided by your domain registrar, but not all of them let you do it for free.

Usually your DNS zone will look something like this (I deleted out some stuff I didn't think you would need if you're not running your own server to try and make it less confusing):

;
; Zone file for mysite.com
;


@ IN NS primary.nameserver.name
@ IN NS secondary.nameserver.name.

@ IN MX 10 mail


@ IN A 123.45.67.89
www IN A 123.45.67.89
mail IN A 123.45.67.89
ftp IN A 123.45.67.89



With this you would end up with ftp.mysite.com, and mail.mysite.com - assuming you host your own mail, ftp and web services. If you're not dealing with mail you can remove the MX entry.

Hope this helps a little - I edited it from a full domain record on my server so I might have hacked too much out - at the very least set up the "A" entries for your domain.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top