From The System Administrator Zone

Invalid command 'LoadModule'

You need to use the "--enable-module=so" option when running the configuration script for the Apache source:

cd /usr/src/apache
./configure --prefix=/var/lib/apache --enable-module=so
make clean
make install

HTTPS Redirects

Under CPANEL, subdomains are subdirectories. To insure that no one (read index robots) on the central domain can access the files for the subdomain, you can put a redirect statement in a .htaccess file in the subdirectory.

Here is the one we use for this site:

RewriteEngine on
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://sysadm.equoria.com/$1 [R,L]

The reason for the port 80 requirement is simple. This will work for the parent domain and for any direct connections to the subdomain, forcing all access to sysadm.equoria.com to go through port 443.

MediaWiki redirects

The final piece of the puzzle was the redirects to support Short URLs. They should only apply to the subdomain and to HTTPS access. Here is what we currently have in the second half of the same .htaccess file.

# http://www.mediawiki.org/wiki/Manual:Short_URL/Apache_Rewrite_rules
RewriteCond %{SERVER_PORT} 443 
RewriteRule ^(images|skins)/ - [L] # so skins and images work
RewriteRule \.(php|html|gif|jpg|png|css|js)$ - [L]
RewriteRule ^/*$ index.php?title=Main_Page [L,QSA]
RewriteRule ^(.+)$ index.php?title=$1 [PT,L,QSA]