title: Multiple login forms
body: <p>My web applications is secured with Spring-security and now I'm trying to setup two different login pages. Here is my configuration:</p>
  
  <pre><code>&lt;http use-expressions="true" pattern="/mobile/**"&gt;
      &lt;intercept-url pattern="/**" access="hasAnyRole('ROLE_ONE','ROLE_TWO')" requires-channel="http"/&gt;
  
      &lt;form-login login-page="/loginm" login-processing-url="/loginm_check" default-target-url="/mobile/menu" authentication-failure-url="/loginmfailed"  /&gt;
      &lt;logout logout-url="/logoutm" logout-success-url="/loginm" /&gt;
  &lt;/http&gt;
  
  &lt;http use-expressions="true"&gt;
      &lt;intercept-url pattern="/main.html" access="isAuthenticated()" requires-channel="http" /&gt;
  
      &lt;form-login login-page="/login" login-processing-url="/login_check" default-target-url="/main.html" authentication-failure-url="/loginfailed"/&gt;
      &lt;logout logout-url="/logout" logout-success-url="/login" /&gt;
  &lt;/http&gt;
  </code></pre>
  
  <p>The second form works well. But the first form doesn't seem to work at all. The server returns 404 for the login-processing-url="/loginm_check".</p>
  
  <p>I'm using the latest Spring-Security 3.1.4.RELEASE. </p>
  
  <p>Can anyone help with this?</p>
  
  <p>Thanks</p>