<div dir="ltr">Hallo Sirko,<br><div class="gmail_extra"><br><div class="gmail_quote">2017-01-06 13:43 GMT+01:00 Sirko <span dir="ltr"><<a href="mailto:mail_ist@nurfuerspam.de" target="_blank">mail_ist@nurfuerspam.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>Hi,</p>
    
    <p>ich hab das versucht:</p>
    <p>$HTTP["url"] =~ "(^/middleware.php/)" {<br>
        proxy.server  = ( "" => ("" => ( "host" => "127.0.0.1",
      "port" => 88 )))<br>
      }<br>
      <br>
      $SERVER["socket"] == ":88" {<br>
        url.rewrite-once = ( "^/middleware.php/(.*)$" => "/$1" )<br>
        proxy.server  = ( "" => ( "" => ( "host" =>
      "127.0.0.1", "port" => 8088 )))<br>
      }<br>
    </p>
    <p><br>
    </p>
    <p>Was auch zu funktionieren zu scheint, aber die response enthält
      jetzt "unexpected non-whitespace"am Anfang, z.B. eine Zahl:</p>
    <p>1012<br>
      {"version":"0.3","data":{"<wbr>tuples":[[1480546798618,2.375,<wbr>1],usw.</p>
    <p>also die 1012 darf da nicht hin.</p>
    <p>Interessanterweise passiert das nicht, wenn ich &debug=5
      anhänge, da ist alles schön:</p></div></blockquote><div>Konntest Du das lösen? Die Abhängigkeit zum &debug ist vedächtig, allerdings konnte ich keine Ecke im Code finden wo die Ausgabe generiert werden könnte- zumal das Proxy Setup bei mir mit Apache läuft.<br><br></div><div>Falls Du noch Hilfe brauchst schick mir gerne ssh/url per PM, evtl habe ih heute abend ein wenig Zeit.<br><br></div><div>Viele Grüße,<br></div><div>Andreas<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
    <p> "debug": {<br>
                      "database": "pdo_mysql",<br>
                      "time": 0.00207,<br>
                      "uptime": 8397676930,<br>
                      "load": [<br>
                              0.21,<br>
                              0.18,<br>
                              0.15<span class=""><br>
                      ],<br>
                      "commit-hash":
      "<wbr>b6062bf962c1052e60aaf7e4bec159<wbr>a75d2db50c",<br>
                      "php-version": "5.6.29-0+deb8u1",<br>
                      "messages": []<br>
              },<br></span>
              "data": {<br>
                      "tuples": [<br>
                              [<br>
                                    <wbr>  1480546798618,<br>
                                    <wbr>  2.375,<br>
      <br>
    </p>
    <p>Grüße</p><span class="HOEnZb"><font color="#888888">
    <p>Sirko<br>
    </p></font></span><div><div class="h5">
    <br>
    <div class="m_7245035107724511277moz-cite-prefix">Am 06.01.2017 um 12:59 schrieb Andreas
      Goetz:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">PS.: siehe <a href="http://stackoverflow.com/questions/14536554/lighttpd-configuration-to-proxy-rewrite-from-one-domain-to-another" target="_blank">http://stackoverflow.com/<wbr>questions/14536554/lighttpd-<wbr>configuration-to-proxy-<wbr>rewrite-from-one-domain-to-<wbr>another</a><br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2017-01-06 12:58 GMT+01:00 Andreas
          Goetz <span dir="ltr"><<a href="mailto:cpuidle@gmail.com" target="_blank">cpuidle@gmail.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr"><br>
              <div class="gmail_extra"><br>
                <div class="gmail_quote"><span>On Fri, Jan 6,
                    2017 at 12:56 PM, Sirko <span dir="ltr"><<a href="mailto:mail_ist@nurfuerspam.de" target="_blank">mail_ist@nurfuerspam.de</a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ups,
                      doch keine korrekte Antwort, sondern:<br>
                      <br>
                      "Unknown context: 'middleware.php'",<br>
                    </blockquote>
                    <div><br>
                    </div>
                  </span>
                  <div>Dann stimmt die rewrite/proxy rule nicht. Aus<br>
                    <br>
                  </div>
                  <div>  <a class="m_7245035107724511277moz-txt-link-freetext">http://</a><ip>/middleware.php/ent<wbr>ity.json<br>
                    <br>
                  </div>
                  <div>muss<br>
                    <br>
                  </div>
                  <div>  <a href="http://127.0.0.1/entity.json" target="_blank">http://127.0.0.1/entity.json</a><br>
                    <br>
                  </div>
                  <div>werden!<br>
                    <br>
                  </div>
                  <div>...<br>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div></div>