[vz-users] Login/Absicherung von VZ Installationen
Sirko
mail_ist at nurfuerspam.de
Fri Jan 6 13:43:03 CET 2017
Hi,
ich hab das versucht:
$HTTP["url"] =~ "(^/middleware.php/)" {
proxy.server = ( "" => ("" => ( "host" => "127.0.0.1", "port" => 88 )))
}
$SERVER["socket"] == ":88" {
url.rewrite-once = ( "^/middleware.php/(.*)$" => "/$1" )
proxy.server = ( "" => ( "" => ( "host" => "127.0.0.1", "port" =>
8088 )))
}
Was auch zu funktionieren zu scheint, aber die response enthält jetzt
"unexpected non-whitespace"am Anfang, z.B. eine Zahl:
1012
{"version":"0.3","data":{"tuples":[[1480546798618,2.375,1],usw.
also die 1012 darf da nicht hin.
Interessanterweise passiert das nicht, wenn ich &debug=5 anhänge, da ist
alles schön:
"debug": {
"database": "pdo_mysql",
"time": 0.00207,
"uptime": 8397676930,
"load": [
0.21,
0.18,
0.15
],
"commit-hash": "b6062bf962c1052e60aaf7e4bec159a75d2db50c",
"php-version": "5.6.29-0+deb8u1",
"messages": []
},
"data": {
"tuples": [
[
1480546798618,
2.375,
Grüße
Sirko
Am 06.01.2017 um 12:59 schrieb Andreas Goetz:
> PS.: siehe
> http://stackoverflow.com/questions/14536554/lighttpd-configuration-to-proxy-rewrite-from-one-domain-to-another
>
> 2017-01-06 12:58 GMT+01:00 Andreas Goetz <cpuidle at gmail.com
> <mailto:cpuidle at gmail.com>>:
>
>
>
> On Fri, Jan 6, 2017 at 12:56 PM, Sirko <mail_ist at nurfuerspam.de
> <mailto:mail_ist at nurfuerspam.de>> wrote:
>
> ups, doch keine korrekte Antwort, sondern:
>
> "Unknown context: 'middleware.php'",
>
>
> Dann stimmt die rewrite/proxy rule nicht. Aus
>
> http://<ip>/middleware.php/entity.json
>
> muss
>
> http://127.0.0.1/entity.json
>
> werden!
>
> ...
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20170106/522a645e/attachment.html>
More information about the volkszaehler-users
mailing list