Well, this is feature i’ve been wanting to implement for a while.

Virtual Sub domains for mod_userdir

I created a dns entry for *.cias.rit.edu
All request coming to the server are then handled by mod_rewrite which goes ahead and redirects requests to their proper mod_userdir

This little 3 liner at the top of my mod_rewrite rules (which is becoming a very long list in maintenance of this web server is all i needed to convert from ~ to .cias.rit.edu

rewriteCond %{HTTP_HOST} !^cias\.rit\.edu
rewriteCond %{HTTP_HOST} ^([^.]+)\.cias\.rit\.edu
rewriteRule (.*) /~%1/public_html/$1 [L]

I am very excited about, as it creates more of a unique identity for web space on the cias server.

Also, tonight i went and upgraded the memory in the server from a measily 512MB, to 2GB, you have to love VMWare where you can just ‘give’ a machine more memory.

Leave a Reply