Ankündigung

Einklappen
Keine Ankündigung bisher.

- √ - Mehrzeiligen Output ausgeben

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    #16
    Hi Jockel,

    probier mal im Aufruf den entsprechenden Serverport mit einzupflegen http://...:80 - oder welchen Port du auch immer im Apache configuriert hast.

    den du rufst OH ja mit 8080 auf - vllcht löst das das problem.

    Grüsse
    Karsten

    Kommentar


      #17
      Das war es leider auch nicht...

      Im apache log taucht der Zugriff übrigens mit allen Browsern auf und bis auf die Browserkennung sehe ich da auch keinen Unterschied.

      Kommentar


        #18
        Ganz bl..d - hast du mal den Browser cache gelöscht und den dann neu gestartet?


        Sent from my Windows Phone 8X by HTC using Tapatalk

        Kommentar


          #19
          Welche Komponenten sind Zwischen Browser und Zielmaschine (Firwalls, Proxies, etc) oder hast du direkten Zuriff (nur LAN)?

          Kannst du mal den zuständigen vHost deiner Apache-Config pasten und den relevanten Teil aus der Sitemap?

          Echt strange. Wenn der direkte Zugriff funzt, müsste es auch über openHAB gehen - ist ja nur ein IFrame...

          Gruß,
          thoern

          Kommentar


            #20
            Da hängt nichts zwischen, der Apache und der Client hängen im gleichen LAN und auch im gleichen Segment, kein Routing, kein VLan oder andere Merkwürdigkeiten. Wirklich wundert mich, dass es mit Opera funktioniert... Und mit allen anderen ja auch beim direkten Aufruf

            Die Apache Konfiguration werde ich morgen mal zusammensuchen, OSX Server ist da etwas eigenwillig...

            Kommentar


              #21
              In der Sitemap hab ich folgendes stehen:

              Code:
              Text label="Openhab log"  icon="logfile" {
                  Webview url="http://openhab.domain.internal:80/showlog.cgi" height=20
              }

              Hier noch die VirtualHost Config des Apache, wie schon gesagt, da lässt sich die Apple Server App ziemlich aus...


              Code:
              <VirtualHost *:80>
                      ServerAdmin admin@example.com
                      DocumentRoot "/Library/Server/Web/Data/Sites/Default"
                      DirectoryIndex index.html index.php /wiki/ default.html
                      CustomLog "/var/log/apache2/access_log" combinedvhost
                      ErrorLog "/var/log/apache2/error_log"
              
                      <IfModule mod_ssl.c>
                              SSLEngine Off
                              SSLCipherSuite "ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM"
                              SSLProtocol -ALL +SSLv3 +TLSv1
                              SSLProxyEngine On
                              SSLProxyProtocol -ALL +SSLv3 +TLSv1
                      </IfModule>
              
                      <Directory "/Library/Server/Web/Data/Sites/Default">
                              Options All -Indexes +ExecCGI -Includes +MultiViews
                              AllowOverride None
                              <IfModule mod_dav.c>
                                      DAV Off
                              </IfModule>
                              <IfDefine !WEBSERVICE_ON>
                                      Deny from all
                                      ErrorDocument 403 /customerror/websitesoff403.html
                              </IfDefine>
                      </Directory>
                      ProxyPass /principals balancer://balancer-group-webapp-com.apple.webapp.webcal--principals
                      ProxyPassReverse /principals balancer://balancer-group-webapp-com.apple.webapp.webcal--principals
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.webcal--principals http://localhost:8008/principals
                      ProxyPass /webcal balancer://balancer-group-webapp-com.apple.webapp.webcal--webcal
                      ProxyPassReverse /webcal balancer://balancer-group-webapp-com.apple.webapp.webcal--webcal
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.webcal--webcal http://localhost:8008/webcal
                      ProxyPass /.well-known balancer://balancer-group-webapp-com.apple.webapp.webcal--.well-known
                      ProxyPassReverse /.well-known balancer://balancer-group-webapp-com.apple.webapp.webcal--.well-known
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.webcal--.well-known http://localhost:8008/.well-known
                      ProxyPass /calendars balancer://balancer-group-webapp-com.apple.webapp.webcal--calendars
                      ProxyPassReverse /calendars balancer://balancer-group-webapp-com.apple.webapp.webcal--calendars
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.webcal--calendars http://localhost:8008/calendars
                      ProxyPass /timezones balancer://balancer-group-webapp-com.apple.webapp.webcal--timezones
                      ProxyPassReverse /timezones balancer://balancer-group-webapp-com.apple.webapp.webcal--timezones
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.webcal--timezones http://localhost:8008/timezones
                                ProxyPass /auth/javascripts !
                      ProxyPass /auth/stylesheets !
                      ProxyPass /auth/images !
                      ProxyPass /auth balancer://balancer-group-webapp-com.apple.webapp.auth--auth
                      ProxyPassReverse /auth balancer://balancer-group-webapp-com.apple.webapp.auth--auth
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.auth--auth http://localhost:8086/auth
                      ProxyPass /wiki/stylesheets !
                      ProxyPass /wiki/testtool !
                      ProxyPass /wiki/javascripts !
                      ProxyPass /wiki/locales !
                      ProxyPass /wiki/static !
                      ProxyPass /wiki/ipad !
                      ProxyPass /wiki/images !
                      ProxyPass /wiki/files/download balancer://balancer-group-webapp-com.apple.webapp.collab--wiki-files-download
                      ProxyPassReverse /wiki/files/download balancer://balancer-group-webapp-com.apple.webapp.collab--wiki-files-download
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.collab--wiki-files-download http://localhost:4444/files
                      ProxyPass /__wiki/preview balancer://balancer-group-webapp-com.apple.webapp.collab--__wiki-preview
                      ProxyPassReverse /__wiki/preview balancer://balancer-group-webapp-com.apple.webapp.collab--__wiki-preview
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.collab--__wiki-preview http://localhost:4444/preview
                      ProxyPass /wiki balancer://balancer-group-webapp-com.apple.webapp.collab--wiki
                      ProxyPassReverse /wiki balancer://balancer-group-webapp-com.apple.webapp.collab--wiki
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.collab--wiki http://localhost:8090/wiki
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.collab--wiki http://localhost:8091/wiki
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.collab--wiki http://localhost:8092/wiki
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.collab--wiki http://localhost:8093/wiki
                      ProxyPass /users balancer://balancer-group-webapp-com.apple.webapp.collab--users
                      ProxyPassReverse /users balancer://balancer-group-webapp-com.apple.webapp.collab--users
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.collab--users http://localhost:8090/users
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.collab--users http://localhost:8091/users
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.collab--users http://localhost:8092/users
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.collab--users http://localhost:8093/users
                      ProxyPass /groups balancer://balancer-group-webapp-com.apple.webapp.collab--groups
                      ProxyPassReverse /groups balancer://balancer-group-webapp-com.apple.webapp.collab--groups
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.collab--groups http://localhost:8090/groups
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.collab--groups http://localhost:8091/groups
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.collab--groups http://localhost:8092/groups
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.collab--groups http://localhost:8093/groups
                      ProxyPass /search balancer://balancer-group-webapp-com.apple.webapp.collab--search
                      ProxyPassReverse /search balancer://balancer-group-webapp-com.apple.webapp.collab--search
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.collab--search http://localhost:8090/search
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.collab--search http://localhost:8091/search
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.collab--search http://localhost:8092/search
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.collab--search http://localhost:8093/search
                      ProxyPass /collabdproxy balancer://balancer-group-webapp-com.apple.webapp.collab--collabdproxy
              		 ProxyPassReverse /collabdproxy balancer://balancer-group-webapp-com.apple.webapp.collab--collabdproxy
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.collab--collabdproxy http://localhost:4444/svc
                      ProxyPass /principals balancer://balancer-group-webapp-com.apple.webapp.contacts--principals
                      ProxyPassReverse /principals balancer://balancer-group-webapp-com.apple.webapp.contacts--principals
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.contacts--principals http://localhost:8008/principals
                      ProxyPass /directory balancer://balancer-group-webapp-com.apple.webapp.contacts--directory
                      ProxyPassReverse /directory balancer://balancer-group-webapp-com.apple.webapp.contacts--directory
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.contacts--directory http://localhost:8008/directory
                      ProxyPass /.well-known balancer://balancer-group-webapp-com.apple.webapp.contacts--.well-known
                      ProxyPassReverse /.well-known balancer://balancer-group-webapp-com.apple.webapp.contacts--.well-known
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.contacts--.well-known http://localhost:8008/.well-known
                      ProxyPass /addressbooks balancer://balancer-group-webapp-com.apple.webapp.contacts--addressbooks
                      ProxyPassReverse /addressbooks balancer://balancer-group-webapp-com.apple.webapp.contacts--addressbooks
                              BalancerMember balancer://balancer-group-webapp-com.apple.webapp.contacts--addressbooks http://localhost:8008/addressbooks
                      Include /Library/Server/Web/Config/apache2/httpd_corecollaboration_webcal.conf
                      Include /Library/Server/Web/Config/apache2/httpd_calendarserver.conf
                      Include /Library/Server/Web/Config/apache2/httpd_webdavsharing.conf
                      Include /Library/Server/Web/Config/apache2/httpd_corecollaboration_webauth.conf
                      Include /Library/Server/Web/Config/apache2/httpd_corecollaboration_required.conf
                      Include /Library/Server/Web/Config/apache2/httpd_wsgi.conf
                      Include /Library/Server/Web/Config/apache2/httpd_corecollaboration_shared.conf
              </VirtualHost>

              Kommentar


                #22
                nur mal auf die Schnelle: Hast du es schon mal ohne das :80 probiert (ist ja default bei http)

                ändere doch bitte mal den Eintrag in der Sitemap von

                Code:
                Text label="Openhab log"  icon="logfile" {
                    Webview url="http://openhab.domain.internal:80/showlog.cgi" height=20
                }
                auf

                Code:
                Text label="Openhab log"  icon="logfile" {
                    Webview url="http://openhab.domain.internal/showlog.cgi" height=20
                }
                Und bitte beim Testen mit den Browsern sicherstellen, dass neu geladen wird -> Shift Reload, ggf. Cache löschen.

                melde mich später nochmal

                Gruß,
                thoern

                Kommentar


                  #23
                  Der Port macht leider auch keine Unterschied...

                  Ist jetzt sicherlich nicht die dringendste Sache, wäre aber auch für andere Sachen praktisch und ich würde es eben gerne verstehen.

                  Kommentar


                    #24
                    Also ich glaube ehrlich gesagt nicht, dass es am Apache liegt.

                    Wenn in der Sitemap Fehler sind, gibt es manchmal solche Effekte.

                    Vielleicht sicherst du die Sitemap nochmals in ein anderes Verzeichnis und legst dir eine an, die nur das enthält:

                    Code:
                    Text label="Openhab log"  icon="logfile" {
                        Webview url="http://openhab.domain.internal/showlog.cgi" height=20
                    }
                    Ansonsten die den zürückgelieferen HTML/JavaScript-Quelltext mit Tools wie Firebug, etc debuggen. Sorry

                    Gruß,
                    thoern

                    Kommentar


                      #25
                      Auch ebei einer primitiven Sitemap gibt es das Problem, aber beim Debuggen bin ich einen Schritt weiter gekommen.

                      Beim Firefox bekomme ich da folgenden Fehler:

                      [20:23:38.264] Load denied by X-Frame-Options: http://openhab.domain.internal/showlog.cgi does not permit cross-origin framing.

                      Nur warum meint er das? Da werde ich wohl nachher mal google anwerfen!

                      Kommentar


                        #26
                        So, danke noch mal für die Unterstützung!! Der Hinweis mit dem Debugger hat mich in die richtige Richtung gestoßen, bin halt kein Webentwickler.

                        In einer der gefühlt 1000 vom OSX Server eingebundenen Konfigurationsdateien hatte sich ein Header set X-Frame-Options "SameOrigin" versteckt. Nachdem ich das auskommentiert habe funktioniert jetzte alles, offensichtlich scheint sich Opera dafür nicht zu interessieren oder sendet die Anfrage anders an den Apache.

                        Jetzt ist mir allerdings immer noch nicht klar, warum es mit "SameOrigin" nicht funktioniert. Ist aber auch erst mal nicht so dramatisch, der Server ist nur im internen Netz sichtbar!

                        Kommentar


                          #27
                          Na super! Das war ja eine schwere Geburt

                          Zitat von Jockel Beitrag anzeigen

                          Jetzt ist mir allerdings immer noch nicht klar, warum es mit "SameOrigin" nicht funktioniert. Ist aber auch erst mal nicht so dramatisch, der Server ist nur im internen Netz sichtbar!
                          Weil "SameOrigin" bedeutet, dass der IFrame vom selben Webserver (hier Apache) kommen muss. OpenHAB ist aber ein anderer Webserver und damit halt nicht "SameOrigin".

                          Normalerweise ist diese Option per Default nicht aktiv - scheinbar auf deinem System anders.

                          Gruß,
                          thoern

                          Kommentar


                            #28
                            Na super! Das war ja eine schwere Geburt
                            Das kann man wohl sagen... Ich hab mir auch lieber direkt mal einen Kommentar in die Sitemap geschrieben!

                            Weil "SameOrigin" bedeutet, dass der IFrame vom selben Webserver (hier Apache) kommen muss. OpenHAB ist aber ein anderer Webserver und damit halt nicht "SameOrigin".
                            OK, ich hatte es auf die Adresse des Rechners bezogen, die wäre ja gleich. Aber sei es drum, wieder was gelernt!!

                            Kommentar

                            Lädt...
                            X