Welcome! Log In Create A New Profile

Advanced

Apache rewrite rule for nginx

Posted by ginda 
Apache rewrite rule for nginx
April 19, 2016 06:22AM
Hi all

Really hope someone can help me.

I need to convert the following apache config to nginx (https://wiki.jenkins-ci.org/display/JENKINS/SAML+Plugin). It is needed to help get users redirected to SSO logout when clicking on jenkins logout.

RewriteEngine On
# find the unique session identifier using RewriteCond
RewriteCond %{HTTP_COOKIE} (JSESSIONID.[a-z0-9]+)

# redirect the logout URL to the IdP logout (in this case SimpleSAMLphp) and reset the session cookie
RewriteRule ^/?logout$ https://idp.example.com/simplesamlphp/saml2/idp/initSLO.php?RelayState=https://jenkins.example.com/ [R,CO=%1:0:;]


Any help would be really appreciated
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 76
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready