diff --git a/docker/rap.conf b/docker/rap.conf
index 1a760e93886d5556809b81c51a4ffefa74670262..de9a2e4856055b11f7072933ef42b4066e40b6c5 100644
--- a/docker/rap.conf
+++ b/docker/rap.conf
@@ -31,9 +31,10 @@
 # Shibboleth authentication (needs Shibboleth module installed and enabled)
 
 <IfModule mod_shib.c>
-    <Directory /var/www/html/rap-ia2/auth/saml2/>
+    <Location /rap-ia2/auth/eduGAIN/>
         AuthType shibboleth
         ShibRequestSetting requireSession 1
+        ShibUseEnvironment On
         Require valid-user
-    </Directory>
+    </Location>
 </IfModule>