Things look quiet here. But I've been doing a lot of blogging at
dan.langille.org because I prefer WordPress now.
Not all my posts there are FreeBSD related.
I am in the midst of migrating The FreeBSD Diary over to WordPress
(and you can read about that here).
Once the migration is completed, I'll move the FreeBSD posts into the
new FreeBSD Diary website.
httpd/dns - adding new domains to your system1 January 1999
This entry describes how to change an existing webpage on an Apache webserver so that
it answers to a new domain. I'm doing this because ml.org no longer exists.
Hence, the two domains I had under that structure which are now dead. I have
recently registered two new domains. This section deals with how I made the Apache
respond to those names.
What needs to be changed?
Well, I didn't know what needs to be changed so I referred to the notes I kept when I
first created the domains. You might also want to refer to Apache - virtual hosts which describes how to create a
virtual host for a website.
I changed two things: my DNS and my Apache. In the
DNS, I added entries for the above webpages.
Changing the DNS
I want the URL freebsddiary.org to resolve to my Apache webserver here at home.
So I added the following to /etc/namedb/named.freebsddiary.org:
; please note: this is not the correct IP address.
; subsitute your own address.
test.freebsddiary.org. IN A 18.104.22.168 ; webserver
www.test.freebsddiary.org. IN A 22.214.171.124 ; webserver
You will notice that I added both URLs with and without the www prefix. Each
entry above corresponds to a DNS entry I made in the previous step (not all of which
appeared in the previous section). If you don't do this, http://ww3.freebsddiary.org/ shows what you will
For example, the above two URLs should give you something like this:
The FreeBSD Diary - sample virtual website
Not all browsers work with virtual websites
There are only a few browsers which don't support virtual websites. If yours is
one of them, instead of seeing something like the above example, you should see something
like http://ww3.freebsddiary.org/. This
is a limitation of the browser, not the website. Sorry.