{% extends 'base.html.twig' %} {% block title %}Web-IO / Gerätesteuerung{% endblock %} {% block content %} {% set webioPublicUrl = webioPublicUrl|default('') %} {% set webioEmbedUrl = webioEmbedUrl|default(webioPublicUrl ~ '/cgi-bin/webgui.fcgi?agent=pc') %}

Gerätesteuerung

{% if webioEmbedUrl %} Vollbild (neuer Tab) {% endif %}
{% if webioPublicUrl %}
Weiterleitung zu /cgi-bin/webgui.fcgi?agent=pc ist normal — das ist die MOBI-Oberfläche. Im Vollbild-Tab ist das korrekt. Beim iframe klappt die Einbettung nur, wenn Apache mod_substitute aktiv ist (siehe config/apache/bayrol-proxy.conf.example).
Eingebettete Gerätesteuerung
{% else %}
Subdomain-Proxy einrichten

Beispiel-Konfiguration: config/apache/bayrol-proxy.conf.example

  1. DNS: bayrol.dp-smartsolutions.de → Server-IP
  2. Apache VirtualHost mit ProxyPass / http://192.168.55.6:8787/
  3. In .env: WEBIO_PUBLIC_URL=https://bayrol.dp-smartsolutions.de
{% endif %}
Server-Erreichbarkeit
{{ serverCheck.message }}
{% endblock %}