• Resolved ebj175

    (@ebj175)


    After migrating from apache to nginx I had a fair bit of difficulty getting this plug-in to work using 4.4.2, nginx and php5-fpm.

    Here is the configuration that I got to work.

    Webserver configuration – /etc/nginx/sites-enabled/www.conf

    server {
    ...
    # add this line to include the file below
    include /etc/nginx/global/simple-saml-php.conf;
    }

    /etc/nginx/global/simple-saml-php.conf

    # this replaces the .htaccess file at wp-content/uploads/saml-20-single-
    # sign-on/etc/certs called in /lib/classes/saml_settings.php @ line 320
    # line 320 of gets commented out to avoid an error message.
    location  ~ \.key$ {
       deny all;
    }
    
    # this allows the reply url to process properly
    location /wp-content/plugins/saml-20-single-sign-on/saml/www/ {
      location ~ \.php(/|$) {
          fastcgi_split_path_info ^(.+?\.php)(/.+)$;
          fastcgi_param PATH_INFO $fastcgi_path_info;
          fastcgi_pass 127.0.0.1:9000;
          fastcgi_index index.php;
          include fastcgi_params;
          fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      }
    }

    https://www.ads-software.com/plugins/saml-20-single-sign-on/

Viewing 1 replies (of 1 total)
  • Jonah

    (@jonah_aragon)

    I know this is very old now, but this was incredibly useful on my Nginx install, which I couldn’t get working at all before. This should be fixed in the main program or added to this plugin’s documentation.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘SAML 2.0 with Nginx and WordPress 4.4.2’ is closed to new replies.