perusio / drupal-with-nginx

Running Drupal using nginx: an idiosyncratically crafted bleeding edge configuration.
854 stars 246 forks source link

Simplesaml #269

Open denics opened 7 years ago

denics commented 7 years ago

Thanks for the very nice and modular configuration. I am now trying to set up a simplesamlphp sso with D7. My configuration works fine in Apache, but I am unable to move now to nginx. On the net I haven't found any working configuration.

This is my conf:

location ^~ /saml_login {
                alias /var/www/simplesaml;
                location ~ ^(?<prefix>/saml_login)(?<phpfile>.+?\.php)(?<pathinfo>/.*)?$ {
                        include fastcgi_params;
                        fastcgi_pass unix:/var/run/php/php7.0-fpm_saml.sock;
                        fastcgi_param SCRIPT_FILENAME $document_root$phpfile;
                        fastcgi_param PATH_INFO $pathinfo in_not_empty;
                }
        }