<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hallo!<div class=""><br class=""></div><div class="">ja da hat der PHP Interpreter was oder es landet erst gar nicht dort. ;)</div><div class="">Ich kann es auch nachvollziehen, mit "curl -i <a href="http://map.funkfeuer.at" class="">http://map.funkfeuer.at</a>“ sowie bei Felix.</div><div class="">Man kann sich also alle files anschauen z.B die config.php als source was natürlich nicht so gut ist, wenn da alle Zugangsdaten drinnen sind.</div><div class=""><br class=""></div><div class="">LG,</div><div class="">Lukas</div><div class=""><br class=""></div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">Am 18.08.2016 um 18:21 schrieb Felix Schneider <<a href="mailto:felix.schneider@aon.at" class="">felix.schneider@aon.at</a>>:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hallo,<br class=""><br class="">Danke erstmal für die Hilfe :) Über HTTPS funktioniert die Karte super.<br class=""><br class="">Zur Reproduktion des Problems: Sobald ich die Seite einmal über HTTPS<br class="">geladen habe, nimmt mein Firefox bei jedem neuen Aufruf die HTTPS-<br class="">Variante (auch bei explizitem HTTP) (und er nimmt sie aus dem Cache, wie<br class="">die Netzwerk-Konsole zeigt). Wenn ich Firefox dann aber zurücksetze oder<br class="">vergessen lasse, funktioniert die Weiterleitung von HTTP auf HTTPS<br class="">wieder nicht, bis ich manuell auf die verschlüsselte Seite gegangen bin.<br class=""><br class="">Lasse ich bei mir curl -i <a href="http://map.funkfeuer.at" class="">http://map.funkfeuer.at</a> laufen, bekomme ich<br class="">folgenden Output:<br class=""><br class="">    HTTP/1.1 200 OK<br class="">    Server: nginx/1.6.2<br class="">    Date: Thu, 18 Aug 2016 16:09:22 GMT<br class="">    Content-Type: text/html<br class="">    Content-Length: 397<br class="">    Last-Modified: Fri, 18 May 2012 00:22:06 GMT<br class="">    Connection: keep-alive<br class="">    ETag: "4fb5962e-18d"<br class="">    Accept-Ranges: bytes<br class=""><br class="">    <html><br class="">    <span class="Apple-tab-span" style="white-space:pre">     </span>    <head><br class="">    <span class="Apple-tab-span" style="white-space:pre">     </span>    <span class="Apple-tab-span" style="white-space:pre"> </span>    <title></title><br class="">    <span class="Apple-tab-span" style="white-space:pre">      </span>    </title><br class="">    <span class="Apple-tab-span" style="white-space:pre">   </span>    <body><br class="">    <span class="Apple-tab-span" style="white-space:pre">     </span>    <span class="Apple-tab-span" style="white-space:pre"> </span>    <h2><a href="http://map.funkfeuer.at" class="">map.funkfeuer.at</a></h2><br class="">    <span class="Apple-tab-span" style="white-space:pre">     </span>    <span class="Apple-tab-span" style="white-space:pre"> </span>    <ul><br class="">    <span class="Apple-tab-span" style="white-space:pre">       </span>    <span class="Apple-tab-span" style="white-space:pre"> </span>    <span class="Apple-tab-span" style="white-space:pre"> </span>    <li><a href="wien">Wien</a> <font style="font-size: 66%"><a href="ChangeLog.txt">(ChangeLog)</a></font></li><br class="">    <span class="Apple-tab-span" style="white-space:pre">       </span>    <span class="Apple-tab-span" style="white-space:pre"> </span>    <span class="Apple-tab-span" style="white-space:pre"> </span>    <li><a href="graz">Graz</a></li><br class="">    <span class="Apple-tab-span" style="white-space:pre">       </span>    <span class="Apple-tab-span" style="white-space:pre"> </span>    <span class="Apple-tab-span" style="white-space:pre"> </span>    <li><a href="weststeiermark/">Weststeiermark</a></li><br class="">    <span class="Apple-tab-span" style="white-space:pre">  </span>    <span class="Apple-tab-span" style="white-space:pre"> </span>    <span class="Apple-tab-span" style="white-space:pre"> </span>    <li><a href="experimental">Wien <small>(experimental version)</small></a></li><br class="">    <span class="Apple-tab-span" style="white-space:pre">     </span>    <span class="Apple-tab-span" style="white-space:pre"> </span>    </ul><br class="">    <span class="Apple-tab-span" style="white-space:pre">      </span>    </body><br class="">    <html><br class=""><br class="">Darin sehe ich keine Spur einer Weiterleitung zu HTTPS. Lasse ich curl<br class="">-i auf <a href="http://map.funkfeuer.at/wien/" class="">http://map.funkfeuer.at/wien/</a> los, fängt meine Ausgabe wie folgt<br class="">an:<br class=""><br class="">    HTTP/1.1 200 OK<br class="">    Date: Thu, 18 Aug 2016 16:13:39 GMT<br class="">    Content-Type: application/octet-stream<br class="">    Content-Length: 8906<br class="">    Last-Modified: Sun, 24 May 2015 02:12:57 GMT<br class="">    Connection: keep-alive<br class="">    ETag: "556133a9-22ca"<br class="">    Accept-Ranges: bytes<br class=""><br class="">    <?php<br class="">            require_once("config.php");<br class="">            require_once("auth.php");<br class=""><br class="">    ?><br class=""><br class="">Ich bekomme also das PHP und keine Weiterleitung. Lasse ich curl -i auf<br class=""><a href="https://map.funkfeuer.at/wien/" class="">https://map.funkfeuer.at/wien/</a> los, erhalte ich ein paar Kopfzeilen mehr<br class="">und kein uninterpretiertes PHP mehr: HTTP/1.1 200 OK<br class="">Server: nginx/1.6.2<br class="">Date: Thu, 18 Aug 2016 16:16:14 GMT<br class="">Content-Type: text/html<br class="">Transfer-Encoding: chunked<br class="">Connection: keep-alive<br class="">X-Powered-By: PHP/5.4.45-0+deb7u3<br class="">Set-Cookie: PHPSESSID=15tvsoppdmbgli150gjv933qj5; path=/<br class="">Expires: Thu, 19 Nov 1981 08:52:00 GMT<br class="">Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0<br class="">Pragma: no-cache<br class="">Strict-Transport-Security: max-age=31536000;<br class="">X-Frame-Options: DENY<br class=""><br class="">    HTTP/1.1 200 OK<br class="">    Server: nginx/1.6.2<br class="">    Date: Thu, 18 Aug 2016 16:16:14 GMT<br class="">    Content-Type: text/html<br class="">    Transfer-Encoding: chunked<br class="">    Connection: keep-alive<br class="">    X-Powered-By: PHP/5.4.45-0+deb7u3<br class="">    Set-Cookie: PHPSESSID=15tvsoppdmbgli150gjv933qj5; path=/<br class="">    Expires: Thu, 19 Nov 1981 08:52:00 GMT<br class="">    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0<br class="">    Pragma: no-cache<br class="">    Strict-Transport-Security: max-age=31536000;<br class="">    X-Frame-Options: DENY<br class=""><br class="">Ich schätze, es sollte nicht relevant sein, aber die Zugriffe kommen aus<br class="">dem Telekom-Netz.<br class=""><br class="">Danke für den Einsatz,<br class="">LG Felix<br class=""><br class="">Am Donnerstag, den 18.08.2016, 08:35 +0200 schrieb Matthias Šubik:<br class=""><blockquote type="cite" class="">Hallo,<br class="">ja, da kam manchmal php source statt map daher, und manche Browser<br class="">machen diese dann zum Download.<br class="">kann man gut nachvollziehen:<br class=""><br class="">curl -i <a href="http://map.funkfeuer.at/" class="">http://map.funkfeuer.at/</a> <br class=""><br class="">*jetzt tritt das nicht mehr auf.*<br class="">Wenn noch jemand solche Fehler hat, und Zugriff auf ein Linux/OpenWRT<br class="">hat, bitte einmal curl (mit header wie im Beispiel), oder wget output <br class="">wget —server-response -O - <a href="http://map.funkfeuer.at" class="">http://map.funkfeuer.at</a> <br class=""><br class="">Einfach die erste Seite aus dem Terminal in das Mail kopieren, dann<br class="">findet sich der Fehler leichter.<br class="">Als Bonus steht nämlich dann auch gleich die Serveruhr drin, dann<br class="">findet man einen Fehler auch im Log.<br class=""><br class="">bG<br class="">Matthias<br class=""><br class=""><br class=""></blockquote><br class="">--<br class="">Wien mailing list<br class=""><a href="mailto:Wien@lists.funkfeuer.at" class="">Wien@lists.funkfeuer.at</a><br class=""><a href="https://lists.funkfeuer.at/mailman/listinfo/wien" class="">https://lists.funkfeuer.at/mailman/listinfo/wien</a></div></div></blockquote></div><br class=""></div></body></html>