Skip to content

Instantly share code, notes, and snippets.

@mortenbra
Last active February 28, 2023 14:16
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 mortenbra/f0596daebe04bc7f16245c929073c94d to your computer and use it in GitHub Desktop.
Save mortenbra/f0596daebe04bc7f16245c929073c94d to your computer and use it in GitHub Desktop.
<VirtualHost *:443>
<Location "/ords">
# to use IP filtering with the RESTRICT_DEV_HEADER instance setting in APEX
<If "-R '1.2.3.4'">
# this is a trusted IP address
RequestHeader unset X-MyCompany-Public-Client
</If>
<Else>
# this is not a trusted IP address
RequestHeader set X-MyCompany-Public-Client Yes
</Else>
</Location>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment