3.6 Sub-domain Replication

xFlow fully supports sub-domain replication, allowing the URLs to member's self replicating web sites to be http://USERNAME.domain.com/. In order to use this feature, the domain name on your web server must be configured a certain way. You will need to contact your server administrator, and ensure the following actions have taken place:
  1. Wildcard DNS must be enabled for your domain. The allows ANYTHING.domain.com to resolve in your web browser

  2. A new VirtualHost directive must be created for your domain, which looks something like:
    <VirtualHost 64.21.76.23:80>
         ServerAlias *.domain.com
         DocumentRoot /home/username/public_html/show.cgi
    </VirtualHost>

    The virtual host must redirect all requests to ANYTHING.domain.com to the show.cgi script on your server, as shown above. Obviously, the IP address needs to be changed to your own.

  3. Go to the Setup->General Settings menu of your Admin Control Panel, and click on the "System Settings" submit button at the top of the page. At the bottom of the page, change the field asking for the URL to the /members/ directory to:
    http://~username~.domain.com/
    The ~username~ merge field must be present in the URL, which informs the software sub-domain replication is being used. If you have successfully completed the above three steps, then sub-domain replication will be activate on your installation. The URL to all member's self replicating web sites will now be located at http://USERNAME.domain.com/