diff --git a/roles/mirrormanager/frontend2/templates/mirrormanager.conf b/roles/mirrormanager/frontend2/templates/mirrormanager.conf
index 27c90767de..89e8da075a 100644
--- a/roles/mirrormanager/frontend2/templates/mirrormanager.conf
+++ b/roles/mirrormanager/frontend2/templates/mirrormanager.conf
@@ -13,14 +13,6 @@ WSGIPythonOptimize 1
WSGIScriptAlias /mirrormanager /var/www/mirrormanager2.wsgi
-
-{% if mm2_checkin %}
- Require all granted
-{% else %}
- Require all denied
-{% endif %}
-
-
WSGIProcessGroup mirrormanager
@@ -33,3 +25,11 @@ WSGIScriptAlias /mirrormanager /var/www/mirrormanager2.wsgi
Allow from all
+
+
+{% if mm2_checkin %}
+ Require all granted
+{% else %}
+ Require all denied
+{% endif %}
+