diff --git a/data/etc/apache2/conf-available/syncthing-plinth.conf b/data/etc/apache2/conf-available/syncthing-plinth.conf
index fe244792e..eae434c2a 100644
--- a/data/etc/apache2/conf-available/syncthing-plinth.conf
+++ b/data/etc/apache2/conf-available/syncthing-plinth.conf
@@ -1,13 +1,20 @@
-ProxyPass /syncthing/ http://localhost:8384/
+##
+## On all sites, provide syncthing web interface on a path: /syncthing
+##
-
- ProxyPassReverse http://localhost:8384/
- AuthType basic
- AuthName "FreedomBox Login"
- AuthBasicProvider ldap
- AuthLDAPUrl "ldap:///ou=users,dc=thisbox?uid"
- AuthLDAPGroupAttribute memberUid
- AuthLDAPGroupAttributeIsDN off
- Require valid-user
+# Redirect /syncthing to /syncthing/ as the Syncthing server does not
+# work without a slash at the end.
+
+
+ RewriteEngine On
+ RewriteCond %{REQUEST_URI} ^/syncthing$
+ RewriteRule .* /syncthing/ [R=301,L]
+
+
+ ProxyPass http://localhost:8384/
+
+ Include includes/freedombox-auth-ldap.conf
+ Require ldap-group cn=admin,ou=groups,dc=thisbox
+
diff --git a/data/etc/apache2/includes/freedombox-auth-ldap.conf b/data/etc/apache2/includes/freedombox-auth-ldap.conf
new file mode 100644
index 000000000..cd7f6231b
--- /dev/null
+++ b/data/etc/apache2/includes/freedombox-auth-ldap.conf
@@ -0,0 +1,6 @@
+AuthType basic
+AuthName "FreedomBox Login"
+AuthBasicProvider ldap
+AuthLDAPUrl "ldap:///ou=users,dc=thisbox?uid"
+AuthLDAPGroupAttribute memberUid
+AuthLDAPGroupAttributeIsDN off
diff --git a/setup.py b/setup.py
index 426b0ca66..798bb7e90 100755
--- a/setup.py
+++ b/setup.py
@@ -209,6 +209,8 @@ setuptools.setup(
glob.glob('data/etc/apache2/conf-available/*.conf')),
('/etc/apache2/sites-available',
glob.glob('data/etc/apache2/sites-available/*.conf')),
+ ('/etc/apache2/includes',
+ glob.glob('data/etc/apache2/includes/*.conf')),
('/etc/ikiwiki',
glob.glob('data/etc/ikiwiki/*.setup')),
('/etc/NetworkManager/dispatcher.d/',