Enable Wildcard for Wordpress MU
To allow each new user to have his/her blog hosted in subdomain (eg. http://user.domain.com), you??l need a wildcard entry in the DNS. To enable wildcard dns, you have to add one single line to your domain name zone:
*.domain.tld. IN A 123.456.78.9
Apache Setup
Open httpd.conf and add the following line at the VirtualHosts section:
DocumentRoot /www/subdomain
ServerName www.domain.tld
ServerAlias *.domain.tld
If you are on shared hosting such as Cpanel, you need to contact the support team and ask them if wildcards are enabled on your account. If not, tell them to add a wildcard entry in the DNS for a particular domain.
Technorati Tags: Apache, WPMU, Wildcard DNS, Hosting




Thanks for this info, would have been really nice with details about setting it up so dynamic data is show via a directory structure without having to create them.
Hi, thanks for information but how can I open and edit httpd.conf file?
@ruud
If you’re using Linux and have root access, you can open up httpd.conf file using pico text editor:
pico -w httpd.conf
If you’re on shared hosting platform, you need to ask your administrator to add the commands for you.
@ruud
If you’re on shared hosting & do not have admin privileges, you must create *(asterisk) subdomain, it works like a DNS Wildcard, for more information, please read my tutorial
Leave a reply
Copyright © 2006 Zainal / Powered by Wordpress