Index: trunk/packages/invirt-web/code/main.py
===================================================================
--- trunk/packages/invirt-web/code/main.py	(revision 2179)
+++ trunk/packages/invirt-web/code/main.py	(revision 2182)
@@ -13,4 +13,5 @@
 import time
 import urllib
+import os
 from StringIO import StringIO
 
@@ -607,5 +608,6 @@
 def unauthFront(_, _2, _3, fields):
     """Information for unauth'd users."""
-    return templates.unauth(searchList=[{'simple' : True}])
+    return templates.unauth(searchList=[{'simple' : True, 
+            'hostname' : os.environ['HOSTNAME'] if 'HOSTNAME' in os.environ else 'xvm.mit.edu'}])
 
 def admin(username, state, path, fields):
Index: trunk/packages/invirt-web/code/templates/unauth.tmpl
===================================================================
--- trunk/packages/invirt-web/code/templates/unauth.tmpl	(revision 2179)
+++ trunk/packages/invirt-web/code/templates/unauth.tmpl	(revision 2182)
@@ -19,5 +19,5 @@
 <p>MIT users:</p>
 <blockquote><big><a
-href="https://xvm.mit.edu/"><strong><font color="green">&rarr;</font> Log in to XVM now</strong>
+href="https://$hostname/"><strong><font color="green">&rarr;</font> Log in to XVM now</strong>
 </a></big></blockquote>
 <p>You'll need an <a href="http://ca.mit.edu/">MIT personal
