title: Issues with CAS and sub-domains
body: <p>I've having some issues using CAS with sub-domains (Java client).</p>
  
  <p>If I have the serverURL in web.xml config set to <a href="http://foobar.net:8080/" rel="nofollow">http://foobar.net:8080/</a>, the service works fine with anything in the form of <a href="http://foobar.net:8080/xxxxx" rel="nofollow">http://foobar.net:8080/xxxxx</a>.</p>
  
  <p>However, if I try to use a sub-domain, i.e. <a href="http://test.foobar.net:8080/xxxxx" rel="nofollow">http://test.foobar.net:8080/xxxxx</a>, it redirects me back to <a href="http://foobar.net:8080/" rel="nofollow">http://foobar.net:8080/</a>.</p>
  
  <p>The service GET variable on the CAS login page displays the URL without the subdomain (i.e. URL encoded form of <a href="http://foobar.net:8080/" rel="nofollow">http://foobar.net:8080/</a>).</p>
  
  <p>Any ideas of what is going wrong?</p>
  
  <p>EDIT: Any ideas?</p>