Home Assistant Reversed Proxy Apache Ubuntu Server 20.04.1

Accessing Home Assistant through Apache, error “Unable to Connect to Home Assistant, Retry” reversed proxy (Opgelost door onderstaand config te plaatsen

  
  ServerAdmin admin@my.domain
  ServerName ha.my.domain
  
  SSLProxyEngine On
  SSLCertificateFile /var/lib/apache2/conf/cert/fullchain.pem
  SSLCertificateKeyFile /var/lib/apache2/conf/cert/privkey.pem
  SSLCertificateChainFile  /var/lib/apache2/conf/cert/chain.pem

  ProxyPreserveHost On
  ProxyRequests Off
  ProxyPass / http://ha_server_ip:8123
  ProxyPassReverse / http://ha_server_ip:8123
  ProxyPass /api/websocket ws://ha_server_ip:8123/api/websocket
  ProxyPassReverse /api/websocket ws://ha_server_ip:8123/api/websocket

  RewriteEngine on
  RewriteCond %{HTTP:Upgrade} =websocket [NC]
  RewriteRule /(.*)  ws://ha_server_ip:8123/$1 [P,l]
  RewriteCond %{HTTP:Upgrade} !=websocket [NC]
  RewriteRule /(.*)  http://ha_server_ip:8123/$1 [P,l]

APACHE – Redirect domain to subfolder to VirtualHost

Example

## www.domain.nl go to www.domain.nl/fiets
<LocationMatch "^/$">
   Redirect permanent "/" "/fiets/"
</LocationMatch>

ProxyPass / https://www.domain.nl/ retry=0
ProxyPassReverse / https://www.domain.nl/

#ProxyPass / https://www.domain.nl:8443/ retry=0
#ProxyPassReverse / https://www.domain.nl:8443/

PXE Booting with WDS for UEFI and BIOS Devices

A lot of what I’m going to go through in this post I learned from this YouTube video from BranchCache Bob, here’s the video. There are some differences, which I’ll point out below.  

The Problem

You have multiple VLANs, and have a mixture of devices with BIOS and UEFI and need to boot them from the network using PXE from a WDS server.

Prerequisites

  • A Windows Deployment Server.
  • A Microsoft DHCP server (does not have to be running on the same server as WDS).
  • Have the DHCP server’s IP as a helper address on your network switch for each VLAN you want to boot.
Lees verder

How to create a PEM file from existing certificate files that form a chain for Domoticz

  • (optional) Remove the password from the Private Key by following the steps listed below: openssl rsa -in server.key -out nopassword.keyNote: Enter the pass phrase of the Private Key.
  • Combine the private key, public certificate and any 3rd party intermediate certificate files:
    cat nopassword.key > server.pem
    cat server.crt >> server.pemNote: Repeat this step as needed for third-party certificate chain files, bundles, etc:
    cat intermediate.crt >> server.pem