Site updated at 2016-08-23 05:00:39 UTC

This commit is contained in:
Travis CI 2016-08-23 05:00:39 +00:00
parent b190e2e10e
commit dde7c7da97
22 changed files with 43 additions and 39 deletions

View file

@ -106,7 +106,7 @@ Your home assistant is correctly working on this web server and available at loc
<p>To be able to access to your home assistant instance by using https://home.example.org, add to following file into <code class="highlighter-rouge">/etc/httpd/conf/extra/hass.conf</code></p>
<pre><code class="language-apacheconf">&lt;VirtualHost *:443&gt;
<div class="language-text highlighter-rouge"><pre class="highlight"><code>&lt;VirtualHost *:443&gt;
ProxyPreserveHost On
ProxyRequests Off
ServerName home.example.org
@ -114,13 +114,15 @@ Your home assistant is correctly working on this web server and available at loc
ProxyPassReverse / http://localhost:8123/
&lt;/VirtualHost&gt;
</code></pre>
</div>
<p>and make sure that this file is read by apaches main configiuration file <code class="highlighter-rouge">/etc/httpd/conf/httpd.conf</code></p>
<pre><code class="language-apacheconf">...
<div class="language-text highlighter-rouge"><pre class="highlight"><code>...
Include conf/extra/hass.conf
...
</code></pre>
</div>
<p>If you dont want HTTPS, you can change <code class="highlighter-rouge">&lt;VirtualHost *:443&gt;</code> to <code class="highlighter-rouge">&lt;VirtualHost *:80&gt;</code> or better consider redirecting all HTTP to HTTPS.</p>
@ -149,7 +151,7 @@ The configuration file for this home assistant is available in <code class="high
<p>To access this instance by using https://countryside.example.org add to <code class="highlighter-rouge">/etc/httpd/conf/extra/hass.conf</code></p>
<pre><code class="language-apacheconf">&lt;VirtualHost *:443&gt;
<div class="language-text highlighter-rouge"><pre class="highlight"><code>&lt;VirtualHost *:443&gt;
ProxyPreserveHost On
ProxyRequests Off
ServerName countryside.example.org
@ -157,12 +159,13 @@ The configuration file for this home assistant is available in <code class="high
ProxyPassReverse / http://localhost:8124/
&lt;/VirtualHost&gt;
</code></pre>
</div>
<h4><a class="title-link" name="http-to-https-redirection" href="#http-to-https-redirection"></a> HTTP to HTTPS redirection</h4>
<p>Add to your <code class="highlighter-rouge">/etc/httpd/conf/extra/hass.conf</code></p>
<pre><code class="language-apacheconf">&lt;VirtualHost *:80&gt;
<div class="language-text highlighter-rouge"><pre class="highlight"><code>&lt;VirtualHost *:80&gt;
ServerName example.org
ServerSignature Off
@ -171,6 +174,7 @@ The configuration file for this home assistant is available in <code class="high
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [NE,R,L]
&lt;/VirtualHost&gt;
</code></pre>
</div>
</article>