Skip to content

Instantly share code, notes, and snippets.

@szeidler
Created November 28, 2017 15:10
Show Gist options
  • Save szeidler/703cbf1993d9546b27501ff39e627d1b to your computer and use it in GitHub Desktop.
Save szeidler/703cbf1993d9546b27501ff39e627d1b to your computer and use it in GitHub Desktop.
SimpleSAMLphp Nginx Docker4Drupal configuration
location ^~ /simplesaml {
alias /var/www/html/web/simplesaml;
location ~ ^(?<prefix>/simplesaml)(?<phpfile>.+?\.php)(?<pathinfo>/.*)?$ {
include /etc/nginx/fastcgi.conf;
fastcgi_pass php;
fastcgi_param SCRIPT_FILENAME $document_root$phpfile;
fastcgi_param PATH_INFO $pathinfo if_not_empty;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment