ติดตั้ง WordPressµ แบบ subdomain
การติดตั้ง WordPressµ แบบ directory นั้น ผู้ใช้จะได้ที่อยู่เป็น http://domain.com/blogname ขณะที่การติดตั้งแบบ subdomain จะได้ http://blogname.domain.com ซึ่งดูโก้กว่า แต่การติดตั้งก็ทำได้ยากกว่า และต้องลงทุนสูงกว่า ผู้เขียนไม่มีสตางค์ จึงได้แต่มองตาปริบๆ ดูคนอื่นเขาเป็นแบบอย่าง เช่น BlogRevo ของคุณเก่ง
ความแตกต่างระหว่างทั้งสองแบบในการติดตั้ง คือ ในแบบ subdomain เราต้องทำ wildcard dns และปรับแต่งการทำงานของ Apache ด้วย ซึ่งมีรายละเอียดในไฟล์ readme ดังนี้:
Apache
======
Apache must be configured so that mod_rewrite works. Here are
instructions for Apache 2. Apache 1.3 is very similar.1. Make sure a line like the following appears in your httpd.conf
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so2. In the
directive of your virtual host, look for this
line
“AllowOverride None”
and change it to
“AllowOverride FileInfo Options”3. In the
section of the config file for your host there
will be a line defining the hostname. You need to add the following
if you want virtual hosts to work properly:
“ServerAlias *.domain.tld”
Replace domain.tld with whatever your one is, and remove the quotes.
ด้วยการใช้ server ราคาถูก (shared hosting) ผู้เขียนอาจสร้าง wildcard dns ได้ แต่การปรับแต่ง Apache นั้น มีแต่จะต้องเช่า server ราคาแพง (dedicated hosting) หรือไม่ก็ตั้ง server เองเท่านั้น จึงจะทำได้
…I just got off the phone with GoDaddy, and they don’t allow wildcard domains on shared hosting accounts.
If you’re using Go Daddy and you want to enable this you’ll have to have dedicated hosting.
Ref: http://mu.wordpress.org/forums/topic.php?id=2344
อ่านเพิ่มเติมเกี่ยวกับการติดตั้ง WordPressµ แบบ subdomain
อ่านเพิ่มเติมเกี่ยวกับ WordPressµ
แนะนำ server สำหรับติดตั้ง WordPressµ แบบ subdomain
http://www.site5.com
ค้นหา IP Address ของโดเมน เพื่อตรวจสอบว่าเซ็ท subdomain ถูกต้องหรือไม่? ตรงกับโดเมนหลัก?
http://www.kloth.net/services/nslookup.php