title: htaccess rule drop 400 Bad Request on Backend apache
body: <p>I have a ISPManager Lite, but i decited moving to lighttpd.
  I use a <strong>lighttpd</strong> as a <strong>Frontend</strong> server and <strong>Apache2</strong> as <strong>Backend</strong>.</p>
  
  <p>In normal php files i have no problem (for example, when i request <strong>/form.php</strong> it's return status <strong>200</strong>).
  But when i am request any dynamic rule (for example <strong>/login</strong>) i get error:
  <strong>400 Bad Request</strong></p>
  
  <p>And apache <strong>error.log</strong> writes:</p>
  
  <pre><code>[Sun Apr 07 22:25:01 2013] [error] [client 127.0.0.1] Invalid URI in request GET core/pages/login.php/ HTTP/1.0, referer: http://sub.domain.com/core/
  </code></pre>
  
  <p>Here is config of <strong>lighttpd.conf</strong> domain:</p>
  
  <pre><code>$HTTP["host"] == "sub.domain.com" {
          proxy.server = ("" =&gt;
                                  (
                                          ( "host" =&gt; "127.0.0.1", "port" =&gt; 3005 )
                                  )
          )
  }
  </code></pre>
  
  <p>Here is <strong>apache2.conf</strong> host:</p>
  
  <pre><code>&lt;VirtualHost 0.0.0.0:3005&gt;
          ServerName sub.domain.com
          DocumentRoot /home/skynet/data/www/sub.domain.com
          ServerAlias www.school.9k.su
          DirectoryIndex index.php index.html
          php_admin_value open_basedir "/home/skynet/data:."
          ........................................
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>And here is my <strong>.htaccess</strong> rule:</p>
  
  <pre><code>RewriteEngine On
  RewriteBase /
  RewriteRule ^login/?$ core/pages/login.php
  </code></pre>
  
  <p>What am I doing wrong?
  How I can solve this problem?</p>
  
  <p>P.S: Sorry for my English, I just learning it.</p>