Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create advanced.md Client documentation file #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/client/advanced.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: Advanced Reference
order: 8
---

## Detecting Expose as a Proxy

When Expose serves your local site it automatically sets the standard `HTTP_X_FORWARDED_HOST` header
which contains the real domain being proxied.

If your application needs to determine whether Expose is the active Proxy server in order to
take certain specific actions, you can check for the presence of either of these headers:

- `HTTP_X_EXPOSED_BY` contains the name of the Expose proxy server
- `HTTP_X_EXPOSE_REQUEST_ID` contains a unique ID