NGINX error witg Edwiser Bridge SSO extension

NGINX error witg Edwiser Bridge SSO extension

by Paul Scollon -
Number of replies: 0

I'm having an issue trying to get a single sign-on plugin to work in Moodle, which I suspect is actually an NGINX issue, but I could be wrong. My WordPress site refuses to verify the secret key with the Moodle server, claiming the plugin is not present. It is. so I looked at the NGINX error log on the moodle server:

2017/03/08 05:11:39 [error] 20709#20709: *189 FastCGI sent in stderr: "Unable to open primary script: /var/www/moodle.mysite.com/auth/wdmwpmoodle/wdmactions.php/index.php (No such file or directory)" while reading response header from upstream, client: 141.101.107.210, server: moodle.mysite.com, request: "GET /auth/wdmwpmoodle/wdmactions.php/?q=flags HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "moodle.mysite.com"

That /index.php that is added to the en of the URL is my issue, I suspect, yet I have no idea how it is getting there. The url without this appended bit works fine. I'm in contact with Edwiser support, but just in case they come up with nothing, has anyone seen anything like this before? The server is Ubuntu 16.04 with NGINX and PHP7-FPM. Moodle is at version 3.1.4 (version required for bridge plugin). For reference, here is my nginx config for the moodle server:

server {

    listen 80;

    listen [::]:80;

    root /var/www/moodle.mysite.com;

    index index.php index.html index.htm index.nginx-debian.html;

    server_name moodle.mysite.com;

    location / {

 #       try_files $uri $uri/ =404;

        try_files $uri $uri/ /index.php?$args;

    }

    location ~ \.php$ {

        include snippets/fastcgi-php.conf;

        fastcgi_pass unix:/run/php/php7.0-fpm.sock;

    }

## Moodle Specific Changes - See Moodle Documentation ##

    location ~ [^/]\.php(/|$) {

        fastcgi_split_path_info  ^(.+\.php)(/.+)$;

        fastcgi_index            index.php;

        fastcgi_pass             unix:/run/php/php7.0-fpm.sock;

        include                  fastcgi_params;

        fastcgi_param   PATH_INFO       $fastcgi_path_info;

        fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;

    }

    location /dataroot/ {

    internal;

    alias /var/moodle/;  

    }

## End Moodle Specific Changes ##

    location ~ /\.ht {

        deny all;

    }

}

Any help is greatly appreciated.

Average of ratings: -