<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=WebServer_Proxy</id>
	<title>WebServer Proxy - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=WebServer_Proxy"/>
	<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=WebServer_Proxy&amp;action=history"/>
	<updated>2026-09-20T05:53:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.domoticz.com/index.php?title=WebServer_Proxy&amp;diff=19089&amp;oldid=prev</id>
		<title>Gizmocuz: /* NGINX: */</title>
		<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=WebServer_Proxy&amp;diff=19089&amp;oldid=prev"/>
		<updated>2026-01-28T10:29:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;NGINX:&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:29, 28 January 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l56&quot;&gt;Line 56:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 56:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===NGINX:===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===NGINX:===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  map $http_upgrade $connection_upgrade {&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    default upgrade;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &#039;&#039;      close;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  }&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   server {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   server {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         listen 443 ssl default_server;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         listen 443 ssl default_server;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key pkjv172828_mw1-mw_:diff:1.41:old-18955:rev-19089:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Gizmocuz</name></author>
	</entry>
	<entry>
		<id>https://wiki.domoticz.com/index.php?title=WebServer_Proxy&amp;diff=18955&amp;oldid=prev</id>
		<title>Walter vl at 16:51, 14 October 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=WebServer_Proxy&amp;diff=18955&amp;oldid=prev"/>
		<updated>2025-10-14T16:51:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:51, 14 October 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l88&quot;&gt;Line 88:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 88:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===IIS===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===IIS===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Using IIS as a reverse proxy for Domoticz does not require any configuration and will work out-of-the-box&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Using IIS as a reverse proxy for Domoticz does not require any configuration and will work out-of-the-box&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(when using version beta 2023.2 15595 or higher)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Walter vl</name></author>
	</entry>
	<entry>
		<id>https://wiki.domoticz.com/index.php?title=WebServer_Proxy&amp;diff=18329&amp;oldid=prev</id>
		<title>Walter vl: /* IIS */</title>
		<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=WebServer_Proxy&amp;diff=18329&amp;oldid=prev"/>
		<updated>2023-10-13T07:09:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;IIS&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===Introduction===&lt;br /&gt;
If you are running a NGINX or Apache webserver or a Synology NAS  and you want to forward (proxy) requests to your internal Domoticz installation then this is a guideline how to do so:&lt;br /&gt;
&lt;br /&gt;
See for more background information the [[Security]] page&lt;br /&gt;
&lt;br /&gt;
We assume the following:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Domoticz is running on a system with:&lt;br /&gt;
&lt;br /&gt;
IP Address: &amp;#039;&amp;#039;&amp;#039;192.168.0.210&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Port: &amp;#039;&amp;#039;&amp;#039;8080 (No SSL)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will forward all requests ending on domoticz/ to the Internal Domoticz application&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
for example:&lt;br /&gt;
https://www.mydomain.com/domoticz/ ===&amp;gt; http://192.168.0.210:8080&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Please Note:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
For the &amp;quot;Forwarded&amp;quot; ([https://www.rfc-editor.org/rfc/rfc7239.html RFC7239]),  &amp;quot;X-Forwarded-For&amp;quot; or &amp;quot;X-Real-IP&amp;quot; HTTP Header to be recognized in Domoticz, make sure you enter the IP address of your proxy server (which could be on the same machine like 127.0.0.1) in the main Domoticz setup page underneath &amp;quot;Local Networks&amp;quot; or when you run a old version (&amp;lt;14299) in &amp;quot;RemoteProxyIPs&amp;quot;. Else external Users are either not allowed at all or can enter Domoticz without login.&lt;br /&gt;
&lt;br /&gt;
===APACHE:===&lt;br /&gt;
  &amp;lt;IfModule mod_ssl.c&amp;gt;&lt;br /&gt;
  &amp;lt;VirtualHost *:443&amp;gt;&lt;br /&gt;
        ServerName www.mydomoain.com&lt;br /&gt;
        ServerAlias www.mydomoain.com&lt;br /&gt;
        ProxyPreserveHost On&lt;br /&gt;
        &lt;br /&gt;
        # ProxyPass domoticz/json ws://192.168.0.210:8080/json&lt;br /&gt;
        # ProxyPassReverse domoticz/json ws://192.168.0.210:8080/json&lt;br /&gt;
        &lt;br /&gt;
        ProxyPass domoticz/ http://192.168.0.210:8080/&lt;br /&gt;
        ProxyPassReverse domoticz/ http://192.168.0.210:8080/&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;Location &amp;quot;domoticz/json&amp;quot;&amp;gt;&lt;br /&gt;
            ProxyPass &amp;quot;ws://192.168.0.210:8080/json&amp;quot;&lt;br /&gt;
        &amp;lt;/Location&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        ErrorLog ${APACHE_LOG_DIR}/site1-web_error.log&lt;br /&gt;
&lt;br /&gt;
        # Possible values include: debug, info, notice, warn, error, crit,&lt;br /&gt;
        # alert, emerg.&lt;br /&gt;
        LogLevel warn&lt;br /&gt;
&lt;br /&gt;
        CustomLog ${APACHE_LOG_DIR}/domoticz_access.log combined&lt;br /&gt;
&lt;br /&gt;
        Include /etc/letsencrypt/options-ssl-apache.conf&lt;br /&gt;
        SSLCertificateFile /etc/letsencrypt/live/www.mydomoain.com/fullchain.pem&lt;br /&gt;
        SSLCertificateKeyFile /etc/letsencrypt/live/www.mydomoain.com/privkey.pem&lt;br /&gt;
  &amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
  &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===NGINX:===&lt;br /&gt;
  server {&lt;br /&gt;
        listen 443 ssl default_server;&lt;br /&gt;
        listen [::]:443 ssl default_server;&lt;br /&gt;
        server_name www.mydomoain.com;&lt;br /&gt;
&lt;br /&gt;
        ssl_certificate www.mydomoain.com.crt;&lt;br /&gt;
        ssl_certificate_key www.mydomoain.com.key;&lt;br /&gt;
&lt;br /&gt;
        access_log /var/log/nginx/domoticz-access.log;&lt;br /&gt;
        error_log /var/log/nginx/domoticz-error.log;&lt;br /&gt;
&lt;br /&gt;
        location /domoticz {&lt;br /&gt;
                rewrite ^/domoticz/?(.*) /$1 break;&lt;br /&gt;
                proxy_http_version		1.1;&lt;br /&gt;
                proxy_read_timeout		90;&lt;br /&gt;
                proxy_set_header        Host $host;&lt;br /&gt;
                proxy_set_header        X-Real-IP $remote_addr;&lt;br /&gt;
                proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;&lt;br /&gt;
                proxy_set_header        X-Forwarded-Proto $scheme;&lt;br /&gt;
                proxy_set_header		X-Scheme $scheme;&lt;br /&gt;
                proxy_set_header		Upgrade $http_upgrade;&lt;br /&gt;
                proxy_set_header		Connection $connection_upgrade;&lt;br /&gt;
                add_header				X-Frame-Options SAMEORIGIN;&lt;br /&gt;
                proxy_pass http://192.168.0.210:8080;&lt;br /&gt;
        }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
===Synology NAS===&lt;br /&gt;
[[File:ReverseProxy Synology.png]]&lt;br /&gt;
&lt;br /&gt;
===IIS===&lt;br /&gt;
Using IIS as a reverse proxy for Domoticz does not require any configuration and will work out-of-the-box&lt;br /&gt;
&lt;br /&gt;
(when using version beta 2023.2 15595 or higher)&lt;/div&gt;</summary>
		<author><name>Walter vl</name></author>
	</entry>
</feed>