Site updated at 2017-10-14 20:51:39 UTC

This commit is contained in:
Travis CI 2017-10-14 20:51:40 +00:00
parent 1140c0ec78
commit 7c75888c9c
27 changed files with 79 additions and 70 deletions

View file

@ -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>&lt;VirtualHost *:443&gt;
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]
&lt;/VirtualHost&gt;
</code></pre>
</div>