Changeset View
Changeset View
Standalone View
Standalone View
src/docs/user/configuration/configuring_preamble.diviner
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | |||||
```name="Custom X-Forwarded-For Handling", lang=php | ```name="Custom X-Forwarded-For Handling", lang=php | ||||
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { | if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { | ||||
$raw_header = $_SERVER['X_FORWARDED_FOR']; | $raw_header = $_SERVER['X_FORWARDED_FOR']; | ||||
$real_address = your_custom_parsing_function($raw_header); | $real_address = your_custom_parsing_function($raw_header); | ||||
$_SERVER['REMOTE_ADDR'] = $raw_header; | $_SERVER['REMOTE_ADDR'] = $real_address; | ||||
} | } | ||||
``` | ``` | ||||
Adjusting SSL | Adjusting SSL | ||||
============= | ============= | ||||
If your install is behind an SSL terminating load balancer, Phabricator may | If your install is behind an SSL terminating load balancer, Phabricator may | ||||
detect requests as HTTP when the client sees them as HTTPS. This can cause | detect requests as HTTP when the client sees them as HTTPS. This can cause | ||||
Show All 22 Lines |