Skip to content

Instantly share code, notes, and snippets.

@AlainODea
Last active July 5, 2018 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlainODea/c6333da0c5c2a7ecfb804275890dd7cb to your computer and use it in GitHub Desktop.
Save AlainODea/c6333da0c5c2a7ecfb804275890dd7cb to your computer and use it in GitHub Desktop.
Nginx redirect server for Okta Apps by CNAME
server{
server_name salesforce.example.com;
rewrite ^/(.*) https://example.okta.com/app/salesforce/exkabcdef123451t7/sso/saml permanent;
}
server{
server_name workday.example.com;
rewrite ^/(.*) https://example.okta.com/app/workday/exk12345abcdef1t7/sso/saml permanent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment