• having trouble getting apache to serve my website to my specific domain

    From Xterior WebDesign@21:1/5 to All on Tue Jul 2 05:14:27 2019
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eli the Bearded@21:1/5 to xteriorwebdesign@gmail.com on Thu Jul 4 07:17:13 2019
    In comp.infosystems.www.servers.unix,
    Xterior WebDesign <xteriorwebdesign@gmail.com> wrote:
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Patrick Jonas@21:1/5 to Xterior WebDesign on Sat Sep 14 19:19:29 2019
    On Tuesday, July 2, 2019 at 8:14:28 AM UTC-4, Xterior WebDesign wrote:
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)