Site updated at 2016-08-23 05:00:39 UTC
This commit is contained in:
parent
b190e2e10e
commit
dde7c7da97
22 changed files with 43 additions and 39 deletions
|
@ -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"><VirtualHost *:443>
|
||||
<div class="language-text highlighter-rouge"><pre class="highlight"><code><VirtualHost *:443>
|
||||
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/
|
||||
</VirtualHost>
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>and make sure that this file is read by apache’s 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 don’t want HTTPS, you can change <code class="highlighter-rouge"><VirtualHost *:443></code> to <code class="highlighter-rouge"><VirtualHost *:80></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"><VirtualHost *:443>
|
||||
<div class="language-text highlighter-rouge"><pre class="highlight"><code><VirtualHost *:443>
|
||||
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/
|
||||
</VirtualHost>
|
||||
</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"><VirtualHost *:80>
|
||||
<div class="language-text highlighter-rouge"><pre class="highlight"><code><VirtualHost *:80>
|
||||
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]
|
||||
</VirtualHost>
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue