Subdomains Configuration

From The Lyceum Wiki

Jump to: navigation, search

By default, Lyceum structures blog urls as "directories":

	http://blogs.example.com/catblog 
	http://blogs.example.com/monkeyblog

Lyceum can also structure blog urls using subdomains:

	http://catblog.blogs.example.com
	http://monkeyblog.blogs.example.com

Here is how to do that:

  1. Go through the installation instructions in Installation.txt.
  2. In your wp-config.php, set SUBDOMAINS to 'true'
  3. Set a wildcard DNS entry for your domain, using the DNS server that you use for all your other DNS entries. If you are doing it by hand, the entry will look something like this:
    *.blogs.example.com.	IN	A	123.456.789.123
  4. Configure apache to have a Wildcard Subdomain via a Virtual Host. It will look something like this:
    <VirtualHost *>
    	ServerName blogs.example.com
    	ServerAlias *
    
    	ServerAdmin webmaster@example.com
    	DocumentRoot /var/www/html
    
    	<Directory /var/www/html >
    		Options Indexes FollowSymLinks MultiViews
    		AllowOverride All
    		Order allow,deny
    		allow from all
    	</Directory>
    </VirtualHost>
  5. (optional) If you are used to having your site accessed via www.yourdomain.com then you will need to create a DNS entry that forwards the www subdomain to your main domain, otherwise Lyceum will try to display a blog by the name 'www' if someone visits that URL.
Personal tools