Discussion:
having trouble getting apache to serve my website to my specific domain?
(too old to reply)
Xterior WebDesign
2019-07-02 12:14:27 UTC
Permalink
Hello, i am fairly new two apache2, but am somewhat an experienced linux user and coder. my issue at hand is that i just registered a dot tk domain with freenon, but cannot figure out how to get it to point to my apache server. im familiar with virtual hosts, but for some reason whether its on my server, or with my domain registry dns. i am doing somthing wrong!!! PLEASE HELP
Eli the Bearded
2019-07-04 07:17:13 UTC
Permalink
In comp.infosystems.www.servers.unix,
Post by Xterior WebDesign
Hello, i am fairly new two apache2, but am somewhat an experienced
linux user and coder. my issue at hand is that i just registered a dot
tk domain with freenon, but cannot figure out how to get it to point
to my apache server. im familiar with virtual hosts, but for some
reason whether its on my server, or with my domain registry dns. i am
doing somthing wrong!!! PLEASE HELP
Have you set up DNS? Usually the first step is telling the people you
registered your domain with (freenon) the names of your nameservers.
This can be the simple case of: let them (freenon, here) do it; but it
could be the ones from your hosting provider, yourself (not advised for
small sites), or a third party.

Then you need an A record for main site, say, example.dk. A records
point to IP addresses. (For IPv6 you need an AAAA record, most people
will not want an AAAA without also having an A record, so I'm not going
to say more about that.)

$ dig example.dk
; <<>> DiG 9.10.3-P4-Ubuntu <<>> example.dk
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25934
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;example.dk. IN A

;; ANSWER SECTION:
example.dk. 3600 IN A 93.167.110.224

;; Query time: 204 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Thu Jul 04 00:05:28 PDT 2019
;; MSG SIZE rcvd: 55

There is is, example.dk. is at 93.167.110.224. If your site is
example.dk and your server is at 93.167.110.224, you are in good shape.
Then you need either an A record or a CNAME for the www subdomain. CNAME
reccords point to another hostname.

$ dig www.example.dk

; <<>> DiG 9.10.3-P4-Ubuntu <<>> www.example.dk
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 65041
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.example.dk. IN A

;; ANSWER SECTION:
www.example.dk. 3600 IN CNAME example.dk.
example.dk. 3600 IN A 93.167.110.224

;; Query time: 446 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Thu Jul 04 00:06:18 PDT 2019
;; MSG SIZE rcvd: 73

There, with that any time the main IP address changes, the subdomain
will follow automatically.

At this point you can configure your webserver to give out the site. If
you have exclusive use of the IP address, a virtual domain is not
needed, but may be useful.

So how far have you gotten?

Elijah
------
not a DNS expert but plays one part time
Patrick Jonas
2019-09-15 02:19:29 UTC
Permalink
Post by Xterior WebDesign
Hello, i am fairly new two apache2, but am somewhat an experienced linux user and coder. my issue at hand is that i just registered a dot tk domain with freenon, but cannot figure out how to get it to point to my apache server. im familiar with virtual hosts, but for some reason whether its on my server, or with my domain registry dns. i am doing somthing wrong!!! PLEASE HELP
Digesting trying all your email by forwarded to your inbox than follow up with the massage comes with.
Loading...