Re: simplesamlphp + nginx configuration

1,967 views
Skip to first unread message

Wolfgang Hennerbichler

unread,
Aug 21, 2012, 5:20:41 AM8/21/12
to simple...@googlegroups.com
I've written something up here:
http://www.wogri.at/openID-provider.332.0.html
it's how to make it work as an openid-provider, but it includes the
nginx config you're looking for.
and yes, nightmare.

On 08/21/2012 11:13 AM, Jay Hoop wrote:
> Howdy,
>
> Has anyone got a functioning nginx configuration for SimpleSAMLphp? I'm having a nightmare with path_info.
>
> Getting it working in Apache2 takes about 15 seconds :-)
>
> - Jay
>


--
http://www.wogri.com

Rob Wilkerson

unread,
Aug 21, 2012, 8:11:09 AM8/21/12
to simple...@googlegroups.com
Yep, just finished mine up yesterday, actually, and had similar PATH_INFO issues, perhaps. If you're on Ubuntu using FPM, here's what I did:

1. Added this line to my fastcgi_params file

    fastcgi_param   PATH_INFO               $fastcgi_path_info;

2. In my authenticating virtual host (not the IDP host), I added

    location ~ ^/simplesaml/(.+\.php.*)$ {
      alias /opt/dev/saml-sp/www/$1;
      # The usual fastcgi stuff plus...
      fastcgi_split_path_info ^(.+\/module\.php)(/.+)$;
    }
    location ~ ^/simplesaml/(.*) {
      alias /opt/dev/saml-sp/www/$1;
    }

Hope that helps. It's not fully tested yet, but seems okay so far.
Reply all
Reply to author
Forward
0 new messages