Destination in response doesn't match

37 views
Skip to first unread message

Umar Draz

unread,
Jun 12, 2017, 9:57:02 AM6/12/17
to SimpleSAMLphp
Hi

I am receiving the error in the Destination in response doesn't match the current URL when I try to use wordpres plugin with nginx.

Backtrace:
Caused by: Exception: Destination in response doesn't match the current URL. 
Backtrace:

Here is my nginx configuration for wordpress

 location ^~ /wp-content/plugins/saml-20-single-sign-on {
        location ~ ^(?<script_name>.*?\.php)(?<path_info>/.*)?$ {
            include /etc/nginx/fastcgi_params;
            fastcgi_param SCRIPT_FILENAME $document_root$script_name;
            fastcgi_param PATH_INFO $path_info;
            fastcgi_param PATH_TRANSLATED $document_root$path_info;
            fastcgi_pass 127.0.0.1:9000;
        }
    }

Anybody please help me where I am wrong.

Thanks for your help

Jaime Perez Crespo

unread,
Jun 21, 2017, 6:11:58 AM6/21/17
to simple...@googlegroups.com
Hi Umar,

Are you behind a load balancer or reverse proxy? If that’s the case, make sure you specify the right canonical base URL for your SimpleSAMLphp installation in the “baseurlpath” configuration option.

It could also be that something in your nginx configuration is wrong and therefore SimpleSAMLphp is unable to guess its own URL correctly. Check the "Diagnostics on hostname, port and protocol” link in the web interface to make sure everything is fine.
--
Jaime Pérez
UNINETT / Feide

jaime...@uninett.no
jaime...@protonmail.com
9A08 EA20 E062 70B4 616B 43E3 562A FE3A 6293 62C2

"Two roads diverged in a wood, and I, I took the one less traveled by, and that has made all the difference."
- Robert Frost

Reply all
Reply to author
Forward
0 new messages