UtamaBeritaTutorialBlogTool

Enable Wildcard for Wordpress MU

Posted By: zainal on August, 03 2007

To allow each new user to have his/her blog hosted in subdomain (eg. http://user.domain.com), you’ll 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.






6 Comments so far

  1. Loke Hansen on October 3rd, 2007

    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.

  2. ruud on January 23rd, 2008

    Hi, thanks for information but how can I open and edit httpd.conf file?

  3. zainal on January 28th, 2008

    @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

    else if you’re on shared hosting platform, you need to ask your administrator to add the commands for you.

  4. WPMU Zone on July 28th, 2009

    @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

  5. Blogger Mojokerto on September 25th, 2010

    Thanks you i will try this on the VPS.
    but when using it on shared host i don’t know how to configure it.

  6. Ma on April 2nd, 2011

    Thanks


Leave a reply

= Please answer this math (required)