<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi,</p>
<p><br>
</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":{"tuples":[[1480546798618,2.375,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>
<p> "debug": {<br>
"database": "pdo_mysql",<br>
"time": 0.00207,<br>
"uptime": 8397676930,<br>
"load": [<br>
0.21,<br>
0.18,<br>
0.15<br>
],<br>
"commit-hash":
"b6062bf962c1052e60aaf7e4bec159a75d2db50c",<br>
"php-version": "5.6.29-0+deb8u1",<br>
"messages": []<br>
},<br>
"data": {<br>
"tuples": [<br>
[<br>
1480546798618,<br>
2.375,<br>
<br>
</p>
<p>Grüße</p>
<p>Sirko<br>
</p>
<br>
<div class="moz-cite-prefix">Am 06.01.2017 um 12:59 schrieb Andreas
Goetz:<br>
</div>
<blockquote
cite="mid:CAD+a8MigZUKxdyO0-tbxxQn9LYBY2qujjvmirbVL0eFpnTVixQ@mail.gmail.com"
type="cite">
<div dir="ltr">PS.: siehe <a moz-do-not-send="true"
href="http://stackoverflow.com/questions/14536554/lighttpd-configuration-to-proxy-rewrite-from-one-domain-to-another">http://stackoverflow.com/questions/14536554/lighttpd-configuration-to-proxy-rewrite-from-one-domain-to-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 moz-do-not-send="true"
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 class="">On Fri, Jan 6,
2017 at 12:56 PM, Sirko <span dir="ltr"><<a
moz-do-not-send="true"
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="moz-txt-link-freetext" href="http://">http://</a><ip>/middleware.php/<wbr>entity.json<br>
<br>
</div>
<div>muss<br>
<br>
</div>
<div> <a moz-do-not-send="true"
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>
</body>
</html>