diff --git a/atom.xml b/atom.xml index a1a3b8674b..90fbbffde0 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2016-06-23T09:16:08+00:00 + 2016-06-23T09:31:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 408d6218b2..70236d42ec 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2016-06-23T09:16:08+00:00 + 2016-06-23T09:31:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index 551c94f0fa..a17653da2c 100644 --- a/blog/categories/device-tracking/atom.xml +++ b/blog/categories/device-tracking/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Device-Tracking | Home Assistant]]> - 2016-06-23T09:16:08+00:00 + 2016-06-23T09:31:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index e1d470be48..cb4963eab6 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2016-06-23T09:16:08+00:00 + 2016-06-23T09:31:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index b26d31aff8..91a5018335 100644 --- a/blog/categories/how-to/atom.xml +++ b/blog/categories/how-to/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: How-To | Home Assistant]]> - 2016-06-23T09:16:08+00:00 + 2016-06-23T09:31:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index a998338ca3..965c36b6e0 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2016-06-23T09:16:08+00:00 + 2016-06-23T09:31:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/internet-of-things/atom.xml b/blog/categories/internet-of-things/atom.xml index 9370e8b53b..dd63b27302 100644 --- a/blog/categories/internet-of-things/atom.xml +++ b/blog/categories/internet-of-things/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Internet-of-Things | Home Assistant]]> - 2016-06-23T09:16:08+00:00 + 2016-06-23T09:31:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index aaa104e033..2b5e096e5f 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2016-06-23T09:16:08+00:00 + 2016-06-23T09:31:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 576e0aa17e..f17c2e7d08 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2016-06-23T09:16:08+00:00 + 2016-06-23T09:31:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index 6490b37732..9615ee464a 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2016-06-23T09:16:08+00:00 + 2016-06-23T09:31:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index c71a07a036..5797d60023 100644 --- a/blog/categories/presence-detection/atom.xml +++ b/blog/categories/presence-detection/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Presence-Detection | Home Assistant]]> - 2016-06-23T09:16:08+00:00 + 2016-06-23T09:31:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/public-service-announcement/atom.xml b/blog/categories/public-service-announcement/atom.xml index 4786420b9f..727d5036dc 100644 --- a/blog/categories/public-service-announcement/atom.xml +++ b/blog/categories/public-service-announcement/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Public-Service-Announcement | Home Assistant]]> - 2016-06-23T09:16:08+00:00 + 2016-06-23T09:31:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index d2c5c655b0..1792bce77c 100644 --- a/blog/categories/release-notes/atom.xml +++ b/blog/categories/release-notes/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Release-Notes | Home Assistant]]> - 2016-06-23T09:16:08+00:00 + 2016-06-23T09:31:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 3d191851bd..adfc4ca883 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2016-06-23T09:16:08+00:00 + 2016-06-23T09:31:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 9dd538fb18..87150785aa 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2016-06-23T09:16:08+00:00 + 2016-06-23T09:31:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 98a6671e73..64a8432427 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2016-06-23T09:16:08+00:00 + 2016-06-23T09:31:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index 672786f42f..60c2079b1c 100644 --- a/blog/categories/user-stories/atom.xml +++ b/blog/categories/user-stories/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: User-Stories | Home Assistant]]> - 2016-06-23T09:16:08+00:00 + 2016-06-23T09:31:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index 754cb1e7c3..fc16ab36a1 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2016-06-23T09:16:08+00:00 + 2016-06-23T09:31:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 1f9a60d481..7f239b1255 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2016-06-23T09:16:08+00:00 + 2016-06-23T09:31:34+00:00 https://home-assistant.io/ diff --git a/cookbook/apache_configuration/index.html b/cookbook/apache_configuration/index.html new file mode 100644 index 0000000000..5762512307 --- /dev/null +++ b/cookbook/apache_configuration/index.html @@ -0,0 +1,241 @@ + + + + + + + + + + Apache Configuration - Home Assistant + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+ + + +
+
+ +
+ + +
+ + + + +
+

+ Apache Configuration +

+
+
+ + +

This is an example about how you can configure Apache to act as a proxy for home assistant.

+ +

This is useful if you want to have:
+* a subdomain redirecting to your home assistant instance
+* several subdomain for several instance
+* HTTPS redirection

+ +

Subdomain

+ +

So you already have a working Apache server available at example.org.
+Your home assistant is correctly working on this web server and available at localhost:8123

+ +

To be able to access to your home assistant instance by using https://home.example.org, add to following file into /etc/httpd/conf/extra/hass.conf

+ +
+
<VirtualHost *:443>
+  ProxyPreserveHost On
+  ProxyRequests Off
+  ServerName home.example.org
+  ProxyPass / http://localhost:8123/
+  ProxyPassReverse / http://localhost:8123/
+</VirtualHost>
+
+
+
+ +

and make sure that this file is read by apache’s main configiuration file /etc/httpd/conf/httpd.conf

+ +
+
...
+Include conf/extra/hass.conf
+...
+
+
+
+

If you don’t want HTTPS, you can change <VirtualHost *:443> to <VirtualHost *:80> or better consider redirecting all HTTP to HTTPS.

+ +

Multiple Instance

+ +

You already have home assistant running on localhost:8123 and available at home.example.org as describe before.
+The configuration file for this home assistant is available in /home/alice/.homeassistant/configuration.yaml

+ +

You want another instance available at https://countryside.example.org

+ +

You can either :
+* Create a new user, bob, to hold the configuration file in /home/bob/.homeassistant/configuration.yaml and run home assistant as this new user
+* Create another configuration directory in /home/alice/.homeassistan2/configuration.yaml and run home assistant using hass --config /home/alice/.homeassistant2/

+ +

In both solution, change port number used by modifying configuration.yaml

+ +
+
http:
+  server_port: 8124
+  ...
+
+
+
+ +

Start home assistant: Now, you have another instance running on localhost:8124

+ +

To access this instance by using https://countryside.example.org add to /etc/httpd/conf/extra/hass.conf

+ +
+
<VirtualHost *:443>
+  ProxyPreserveHost On
+  ProxyRequests Off
+  ServerName countryside.example.org
+  ProxyPass / http://localhost:8124/
+  ProxyPassReverse / http://localhost:8124/
+</VirtualHost>
+
+
+
+ +

HTTP to HTTPS redirection

+ +

Add to your /etc/httpd/conf/extra/hass.conf

+ +
+
<VirtualHost *:80>
+  ServerName example.org
+  ServerSignature Off
+
+  RewriteEngine on
+  RewriteCond %{HTTPS} !=on
+  RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [NE,R,L]
+</VirtualHost>
+
+
+
+ + +
+ + +
+ + + + +
+
+ + + + + + \ No newline at end of file diff --git a/cookbook/index.html b/cookbook/index.html index f2892f67ae..ba4a5abe4a 100644 --- a/cookbook/index.html +++ b/cookbook/index.html @@ -183,6 +183,12 @@ +

Infrastructure

+ + + diff --git a/sitemap.xml b/sitemap.xml index dfdc4e502d..168041e4ad 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1583,6 +1583,9 @@ https://home-assistant.io/cookbook/configuration_yaml_by_geekofweek/ + + https://home-assistant.io/cookbook/apache_configuration/ + https://home-assistant.io/topics/templating/ @@ -1804,26 +1807,26 @@ https://home-assistant.io/demo/frontend.html - 2016-06-23T09:15:22+00:00 + 2016-06-23T09:30:43+00:00 https://home-assistant.io/demo/index.html - 2016-06-23T09:15:22+00:00 + 2016-06-23T09:30:43+00:00 https://home-assistant.io/googlef4f3693c209fe788.html - 2016-06-23T09:15:22+00:00 + 2016-06-23T09:30:43+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html - 2016-06-23T09:15:22+00:00 + 2016-06-23T09:30:43+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html - 2016-06-23T09:15:22+00:00 + 2016-06-23T09:30:43+00:00 https://home-assistant.io/static/mdi-demo.html - 2016-06-23T09:15:22+00:00 + 2016-06-23T09:30:43+00:00