Hallo Andreas, <div><br></div><div>Mehrfach sogar,  mit sudo systemctl restart nginx und über reboot des kompletten systems. </div><div><br></div><div>Gruß Tobias<br><br></div><div style="line-height:1.5"><br><br>-------- Ursprüngliche Nachricht --------<br>Betreff: Re: [vz-users] Probleme mit PPM und NGINX proxy<br>Von: Andreas Goetz <cpuidle@gmail.com><br>An: "volkszaehler.org - users" <volkszaehler-users@demo.volkszaehler.org><br>Cc: <br><br><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="ltr"></div><div dir="ltr">Hattest Du nginx durchgestartet?</div><div dir="ltr"><br />Am 07.04.2019 um 12:12 schrieb Tobias Lehr <<a href="mailto:tobias.lehr@me.com">tobias.lehr@me.com</a>>:<br /><br /></div><blockquote><div dir="ltr">Hallo,<div><br /></div><div>Im Zuge der Testung der ip Problematik beim Image mit dem Raspberry Pi 3 Model B habe ich auch den VZ manuell installiert. Nur die middleware, nicht den Vzlogger.</div><div><br /></div><div>Bei der middleware bin ich nach der Installations Anleitung im wiki vorgegangen: <a href="https://wiki.volkszaehler.org/software/middleware/installation">https://wiki.volkszaehler.org/software/middleware/installation</a></div><div><br /></div><div>dabei habe ich ppm als Webserver installiert und nginx als proxy. Ich habe die Schritte exakt so ausgeführt wie im wiki beschrieben.</div><div><br /></div><div>PPM läuft und nginx läuft auch, aber das Frostend ist nur unter IPAdrese:8080 erreichbar, wenn ich nur die ip Adresse eingebe, dann bekomme ich von Chrome eine Fehlermeldung ERR_Connection_refused.</div><div><br /></div><div>anbei der Inhalt der /etc/nginx/sites-available/volkszaehler.conf</div><div><br /></div><div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'"># volkszaehler.conf</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo';min-height:13px"><br /></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'">include /etc/nginx/proxy_params;</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo';min-height:13px"><br /></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'">  server {<!-- --></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'">    listen 80;</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo';min-height:13px"><br /></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'">    location / {<!-- --></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'">      proxy_pass <a href="http://localhost:8080">http://localhost:8080</a>;</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'">      include /etc/nginx/proxy_params;</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'">    }</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo';min-height:13px"><br /></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'">    location /middleware {<!-- --></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'">      rewrite ^/middleware(.php)?(/.*)? $2;</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'">      proxy_pass <a href="http://localhost:8080/">http://localhost:8080/</a>;</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'">    }</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo';min-height:13px"><br /></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'">    location /api {<!-- --></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'">      rewrite ^/api(/.*)? $1;</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'">      proxy_pass <a href="http://localhost:8080/">http://localhost:8080/</a>;</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'">    }</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo';min-height:13px"><br /></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'">    location /frontend {<!-- --></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'">      rewrite ^/frontend/(.*) $1;</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'">      proxy_pass <a href="http://localhost:8080/">http://localhost:8080/</a>;</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'">    }</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo'">  }</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo';min-height:13px"><br /></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo';min-height:13px">sudo rm /etc/nginx/sites-enabled/default habe ich ausgeführt</div></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo';min-height:13px"><br /></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo';min-height:13px">ebenso sudo ln -s /etc/nginx/sites-available/volkszaehler.conf volkszaehler</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo';min-height:13px"><br /></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo';min-height:13px">muss da noch irgendwo was konfiguriert werden, das vielleicht im wiki fehlt? Gibt es noch irgendwelche logs in denen  man Fehler finden kann? Unter /var/log/nginx stehen zwei Access.log und error.log, diese sind aber leer.</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo';min-height:13px"><br /></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:'menlo';min-height:13px">Gruß Tobias</div></div></blockquote></div></blockquote></div>