diff --git a/docs/simplesamlphp-install.md b/docs/simplesamlphp-install.md
index 5680ba79cf5f6c55ae4536d45eebae187745e170..22221f385c835a13033d0805449a2609c3425dc9 100644
--- a/docs/simplesamlphp-install.md
+++ b/docs/simplesamlphp-install.md
@@ -211,7 +211,7 @@ look like this:
         location ^~ /simplesaml {
             alias /var/simplesamlphp/www;
 
-            location ~ ^(?<prefix>/simplesaml)(?<phpfile>.+?\.php)(?<pathinfo>/.*)?$ {
+            location ~^(?<prefix>/simplesaml)(?<phpfile>.+?\.php)(?<pathinfo>/.*)?$ {
                 include          fastcgi_params;
                 fastcgi_pass     $fastcgi_pass;
                 fastcgi_param SCRIPT_FILENAME $document_root$phpfile;