Site updated at 2017-10-14 20:51:39 UTC
This commit is contained in:
parent
1140c0ec78
commit
7c75888c9c
27 changed files with 79 additions and 70 deletions
|
@ -90,13 +90,19 @@
|
|||
</div>
|
||||
<p>To be able to access to your Home Assistant instance by using https://home.example.org, add to following file to <code class="highlighter-rouge">/etc/httpd/conf/extra/</code> as <code class="highlighter-rouge">hass.conf</code></p>
|
||||
<div class="language-text highlighter-rouge"><pre class="highlight"><code><VirtualHost *:443>
|
||||
ProxyPreserveHost On
|
||||
ProxyRequests Off
|
||||
ServerName home.example.org
|
||||
ProxyPass /api/websocket ws://localhost:8123/api/websocket
|
||||
ProxyPassReverse /api/websocket ws://localhost:8123/api/websocket
|
||||
ProxyPreserveHost On
|
||||
ProxyRequests off
|
||||
ProxyPass / http://localhost:8123/
|
||||
ProxyPassReverse / http://localhost:8123/
|
||||
ProxyPass /api/websocket ws://localhost:8123/api/websocket
|
||||
ProxyPassReverse /api/websocket ws://localhost:8123/api/websocket
|
||||
|
||||
RewriteEngine on
|
||||
RewriteCond %{HTTP:Upgrade} =websocket [NC]
|
||||
RewriteRule /(.*) ws://localhost:8123/$1 [P,L]
|
||||
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
|
||||
RewriteRule /(.*) http://localhost:8123/$1 [P,L]
|
||||
</VirtualHost>
|
||||
</code></pre>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue