Step by step install wpmu in VDS / VPS : setting wildcard and subdomain part 2
What I like from VDS is the system already configured by skilled tech person for running fast. Little technical knowledge needed to run it and also cheap
In last post I talk about setting wildcard and subdomain in minivds system.
A few things need to consider are :
1. Apache httpd.conf file
2. named zone where record for our domain created
From httpd.conf the most important things that make wpmu work for subdomain is :
ServerAlias *.ngeblog.cn
you can use a.ngeblog.cn, xyz.ngeblog.cn etc for subdomain and its job of apache to translate it into proper view.
Since minivds using isplite control panel system the dns process and the exact record not shown, I must use ssh access to see it.
cd /var/named/etc/namedb/master
ls
empty.db localhost-forward.db localhost-reverse.db localhost-v6.rev localhost.rev ngeblog.cn
view content of ngeblog.cn using easy editor :
ee ngeblog.cn
$TTL 3600
ngeblog.cn. IN SOA ns1.minivds.com. root.blogasik.com. (2008103003 10800 3600 604800 86400)
ngeblog.cn. IN NS ns1.minivds.com.
ngeblog.cn. IN NS ns2.minivds.com.
ngeblog.cn. IN MX 10 mail
ngeblog.cn. IN MX 20 mail
ngeblog.cn. IN A 82.146.51.161
ftp IN A 82.146.51.161
mail IN A 82.146.51.161
smtp IN A 82.146.51.161
pop IN A 82.146.51.161
ngeblog.cn. IN TXT “v=spf1 ip4:82.146.51.161 a mx ~all”
* IN A 82.146.51.161
As you see the wildcard section in this record is :
* IN A 82.146.51.161
* means subdomain is fine, but if you wanna to change it into
*.ngeblog.cn IN A 82.146.51.161
also fine
just make sure to restart dns system.
root@ngeblog:/var/named/etc/namedb/master# /etc/rc.d/named restart
Stopping named.
Waiting for PIDS: 5897.
Starting named.
root@ngeblog:/var/named/etc/namedb/master#
Till this part what I’ve done so far are :
- add user into vds
- add domain
- setting wildcard
- setting dubdomain
Related Reading:
A Streetcar Named DesireThe Pulitzer Prize and Drama Critics Circle Award winning play—reissued with an introduction by Arthur Miller (Death of a Salesman and The Crucible)... Read More >
A Man Named Dave: A Story of Triumph and ForgivenessThe inspiring conclusion to A Child Called "It" and The Lost Boy"All those years you tried your best to break me, and I'm still here. One day yo... Read More >
The Old Woman Who Named ThingsHow does an old woman who has outlived all her friends keep from being lonely? By naming the things in her life she knows she will never outlive--like... Read More >
An Eagle Named Freedom: My True Story of a Remarkable FriendshipFrom the moment Jeff Guidry saw the emaciated baby eagle with broken wings, his life was changed. For weeks he and the staff at Sarvey Wildlife Ca... Read More >
A Girl Named Zippy: Growing Up Small in Mooreland, IndianaWhen Haven Kimmel was born in 1965, Mooreland, Indiana, was a sleepy little hamlet of three hundred people. Nicknamed "Zippy" for the way she would b... Read More >
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.
