Toby Schrapel

Using SimpleSAMLPHP with Laravel Valet

May 23, 2017

Open your ~/.valet/Nginx/{site}.dev

Add the following and replace PATH_TO where ever you installed Simple SAML.

location  /simplesaml {
  alias PATH_TO/simplesamlphp/www;
  location ~ .php(/|$) {
    fastcgi_split_path_info ^(.+?.php)(/.+)$;
    fastcgi_param PATH_INFO $fastcgi_path_info;
    fastcgi_pass unix:/Users/YOUR_USERNAME/.valet/valet.sock;
    fastcgi_index index.php;
    include fastcgi_params;
  }
}

Run valet restart


Toby Schrapel

Toby Schrapel is a PHP developer & consultant and digital nomad that is currently living in Playa del Carmen, Mexico. Talk to me