Welcome! Log In Create A New Profile


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: 310
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready