Hauptmenü

Apache https Tablet ui

Begonnen von mani, 27 Juli 2019, 22:32:28

Vorheriges Thema - Nächstes Thema

mani

#15
ja folgendes habe ich im access.log noch gefunden:


10.0.0.yy - - [05/Aug/2019:13:05:54 +0200] "GET /fhem/tablet/lib/font-awesome.min.css HTTP/1.1" 500 999 "https://10.0.0.xx/video.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36"
10.0.0.yy - - [05/Aug/2019:13:05:54 +0200] "GET /fhem/tablet/css/background.css HTTP/1.1" 500 999 "https://10.0.0.xx/video.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36"
10.0.0.yy - - [05/Aug/2019:13:05:54 +0200] "GET /fhem/www/tablet/favicon-32.png HTTP/1.1" 500 999 "https://10.0.0.xx/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36"

10.0.0.yy - - [05/Aug/2019:13:05:54 +0200] "GET /fhem/www/tablet/favicon-162.png HTTP/1.1" 500 999 "https://10.0.0.xx/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36"



was mir da komisch vorkommt ist das "HTTP/1.1" woher kommt das sollte das HTTPS sein?
RasPi B+,Onkyo_AVR,Luxtronik2,Logo7,Mpd,Arduino Uno mit Ethernet,KNX,Jablotron

amenomade

#16
Was überhaupt komisch vorkommt,  ist, dass man gar kein Versuch auf die Seiten sieht.
Kanst Du in deiner apache .conf noch "LogLevel debug" eintragen, und dann wieder versuchen, auf deine Seiten zu kommen?

Und bitte auch beschreiben, wie Du auf TabletUI greifst:
- von welcher IP Adresse aus
- mit welcher URL
- evtl. noch mit welchem Browser
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

mani

nach der umstellung auf debug steht folgendes im error log:



  GNU nano 2.2.6                                 Datei: /var/log/apache2/error.log
[Mon Aug 05 20:43:01.607649 2019] [ssl:info] [pid 1241] AH01914: Configuring server servername:80 for SSL protocol
[Mon Aug 05 20:43:01.609101 2019] [ssl:debug] [pid 1241] ssl_engine_init.c(390): AH01893: Configuring TLS extension handling
[Mon Aug 05 20:43:01.615886 2019] [ssl:warn] [pid 1241] AH01906: servername:80:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Aug 05 20:43:01.616311 2019] [ssl:debug] [pid 1241] ssl_util_ssl.c(343): AH02412: [servername:80] Cert matches for name 'servername' [subject: emailAddre$
[Mon Aug 05 20:43:01.616396 2019] [ssl:info] [pid 1241] AH02568: Certificate and private key servername:80:0 configured from /etc/apache2/ssl/servername.crt a$
[Mon Aug 05 20:43:02.714512 2019] [ssl:info] [pid 1267] AH01914: Configuring server servername:80 for SSL protocol
[Mon Aug 05 20:43:02.715942 2019] [ssl:debug] [pid 1267] ssl_engine_init.c(390): AH01893: Configuring TLS extension handling
[Mon Aug 05 20:43:02.718343 2019] [ssl:warn] [pid 1267] AH01906: servername:80:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Aug 05 20:43:02.718712 2019] [ssl:debug] [pid 1267] ssl_util_ssl.c(343): AH02412: [servername:80] Cert matches for name 'servername' [subject: emailAddre$
[Mon Aug 05 20:43:02.718785 2019] [ssl:info] [pid 1267] AH02568: Certificate and private key servername:80:0 configured from /etc/apache2/ssl/servername.crt a$
[Mon Aug 05 20:43:02.764042 2019] [proxy:debug] [pid 1289] proxy_util.c(1771): AH00925: initializing worker https://127.0.0.1:8083/fhem shared
[Mon Aug 05 20:43:02.764180 2019] [proxy:debug] [pid 1289] proxy_util.c(1813): AH00927: initializing worker https://127.0.0.1:8083/fhem local
[Mon Aug 05 20:43:02.764283 2019] [proxy:debug] [pid 1289] proxy_util.c(1864): AH00931: initialized single connection worker in child 1289 for (127.0.0.1)
[Mon Aug 05 20:43:02.767010 2019] [proxy:debug] [pid 1288] proxy_util.c(1771): AH00925: initializing worker https://127.0.0.1:8083/fhem shared
[Mon Aug 05 20:43:02.767154 2019] [proxy:debug] [pid 1288] proxy_util.c(1813): AH00927: initializing worker https://127.0.0.1:8083/fhem local
[Mon Aug 05 20:43:02.767260 2019] [proxy:debug] [pid 1288] proxy_util.c(1864): AH00931: initialized single connection worker in child 1288 for (127.0.0.1)
[Mon Aug 05 20:43:02.769828 2019] [proxy:debug] [pid 1287] proxy_util.c(1771): AH00925: initializing worker https://127.0.0.1:8083/fhem shared
[Mon Aug 05 20:43:02.769970 2019] [proxy:debug] [pid 1287] proxy_util.c(1813): AH00927: initializing worker https://127.0.0.1:8083/fhem local
[Mon Aug 05 20:43:02.770073 2019] [proxy:debug] [pid 1287] proxy_util.c(1864): AH00931: initialized single connection worker in child 1287 for (127.0.0.1)
[Mon Aug 05 20:43:02.773136 2019] [mpm_prefork:notice] [pid 1267] AH00163: Apache/2.4.10 (Raspbian) OpenSSL/1.0.1t mod_perl/2.0.9dev Perl/v5.20.2 configured$
[Mon Aug 05 20:43:02.773337 2019] [core:notice] [pid 1267] AH00094: Command line: '/usr/sbin/apache2'
[Mon Aug 05 20:43:02.774030 2019] [proxy:debug] [pid 1290] proxy_util.c(1771): AH00925: initializing worker https://127.0.0.1:8083/fhem shared
[Mon Aug 05 20:43:02.774240 2019] [proxy:debug] [pid 1290] proxy_util.c(1813): AH00927: initializing worker https://127.0.0.1:8083/fhem local
[Mon Aug 05 20:43:02.774380 2019] [proxy:debug] [pid 1290] proxy_util.c(1864): AH00931: initialized single connection worker in child 1290 for (127.0.0.1)
[Mon Aug 05 20:43:02.794445 2019] [proxy:debug] [pid 1291] proxy_util.c(1771): AH00925: initializing worker https://127.0.0.1:8083/fhem shared
[Mon Aug 05 20:43:02.794764 2019] [proxy:debug] [pid 1291] proxy_util.c(1813): AH00927: initializing worker https://127.0.0.1:8083/fhem local
[Mon Aug 05 20:43:02.794896 2019] [proxy:debug] [pid 1291] proxy_util.c(1864): AH00931: initialized single connection worker in child 1291 for (127.0.0.1)


Aufgerufen wird das Tablet ui aus Chrome mit dem Servername oder der Ip der festen ip des Servers immer mit dem gleichen ergebnis..
RasPi B+,Onkyo_AVR,Luxtronik2,Logo7,Mpd,Arduino Uno mit Ethernet,KNX,Jablotron

amenomade

Möchte auch gerne access.log sehen bitte
Bitte auch die vollständige URL, wie Du TabletUI aufrufst.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

mani

Also die Tablet ui rufe ich nur über die IP Adresse auf da ich ja den Pfad direkt auf /opt /fhem/www/tablet gesetzt habe wird dadurch die index.php aufgerufen....nun würde ich meinen fhem Server gerne wieder auf http zurücksetzen da momentan mein Tablet ui gar nicht funzt ....aber irgendwie geht das nicht dachte mit https wieder auf null zu setzten und Neustarten wäre es getan, leider ist es das nicht. Was muss ich noch machen?
RasPi B+,Onkyo_AVR,Luxtronik2,Logo7,Mpd,Arduino Uno mit Ethernet,KNX,Jablotron

amenomade

Nicht auf 0 setzen, sondern löschen.

Sorry, aber ich verstehe deine Konfiguration immer noch nicht.
- Läuft alles (fhem, TabletUI, Apache) auf dem gleichem Rechner?
- sollen die TabletUI Seiten von Apache bedient werden, oder hast Du dafür ein HTTPSRV Device eingerichte, wie hier beschrieben: https://wiki.fhem.de/wiki/FHEM_Tablet_UI#Installation ?
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

mani

Ok danke, Ja alles läuft auf einen Rechner Httpsrv hatte ich bis zu dem Zeitpunkt wo ich php brauchte habe ich aber mittlerweile aus der config gelöscht da ich darüber keinen Zugriff mehr auf das Tablet ui hatte
RasPi B+,Onkyo_AVR,Luxtronik2,Logo7,Mpd,Arduino Uno mit Ethernet,KNX,Jablotron

amenomade

Dann brauchst aber kein Proxy???

http://IP:8083/fhem wird vom internen Fhem Webserver betrieben

https://IP wird von Apache betrieben (und ruft im Hintergrund fhem)
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

mani

Du meinst das ich kein Proxy angeben muss in der apache.config? z.B so?

<VirtualHost *:80>
                ServerAdmin webmaster@localhost
                ServerName xxxxxxxxxxxxxxx
                DocumentRoot /opt/fhem/www/tablet
        <Directory /opt/fhem/www>
                Order allow,deny
                Allow from all
                Require all granted
                Options +Indexes
        </Directory>
                LogLevel alert rewrite:trace2
                ErrorLog ${APACHE_LOG_DIR}/error.log
                CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>


Mfg
RasPi B+,Onkyo_AVR,Luxtronik2,Logo7,Mpd,Arduino Uno mit Ethernet,KNX,Jablotron

amenomade

Ich dachte Du willst https (also Port 443), aber ja, sowas in die Richtung
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

mani

Ja hatte ich auch, hab jetzt nochmals umgestellt auf Port 80 http um zu schon ob da ohne Proxy Einstellungen funktioniert aber auch das geht nicht ....


RasPi B+,Onkyo_AVR,Luxtronik2,Logo7,Mpd,Arduino Uno mit Ethernet,KNX,Jablotron

amenomade

Darf ich mal fragen, warum Du unbedingt Apache benutzen möchtest, statt was standardmässig Fhem zur Verfügung stellt?
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

mani

Da der Webserver vom fhem php nicht kann
RasPi B+,Onkyo_AVR,Luxtronik2,Logo7,Mpd,Arduino Uno mit Ethernet,KNX,Jablotron

amenomade

Aber TabletUI ist nicht auf PHP! ???
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

mani

Meines mittlerweile schon  :)... nun bin ich wieder bei meinem Problem angekommen das unter https die index.php läuft und alle iframes nicht, außer ich rufe die Seiten direkt im Browser auf bin am überlegen ob da vielleicht x frameoptions hilft ::)
RasPi B+,Onkyo_AVR,Luxtronik2,Logo7,Mpd,Arduino Uno mit Ethernet,KNX,Jablotron