title: Java spring security - intercept subdomain url for different login?
body: <p>I have an application with spring security installed and working well -- it is currently running out of <code>www.exampledomain.com</code>.</p>
  
  <p>I now want to expand the application running out of a subdomain. For example <code>newapp.exampledomain.com</code>.</p>
  
  <p>The only problem is that for this new app a user needs to log in. In spring it is very easy to intercept urls via <code>&lt;intercept-url pattern="/Admin/*" access="ROLE_GENERAL"/&gt;</code></p>
  
  <p>but what do you do when you want to intercept a subdomain for login? For example the following doesnt work for me:</p>
  
  <pre><code>&lt;intercept-url pattern="http://newapp.exampledomain.com/*" access="ROLE_GENERAL"/&gt;
  </code></pre>
  
  <p>Any thoughts on how to get around this?</p>