[vz-users] Login/Absicherung von VZ Installationen

Andreas Goetz cpuidle at gmail.com
Wed Jan 11 09:25:45 CET 2017


Hallo Sirko,

2017-01-06 13:43 GMT+01:00 Sirko <mail_ist at nurfuerspam.de>:

> 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:
>
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.

Falls Du noch Hilfe brauchst schick mir gerne ssh/url per PM, evtl habe ih
heute abend ein wenig Zeit.

Viele Grüße,
Andreas

 "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>:
>
>>
>>
>> On Fri, Jan 6, 2017 at 12:56 PM, Sirko <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/20170111/6171f528/attachment.html>


More information about the volkszaehler-users mailing list