Title: HTTP_X_FORWARDED_HOST
Last modified: January 21, 2022

---

# HTTP_X_FORWARDED_HOST

 *  Resolved [offisapup](https://wordpress.org/support/users/offisapup/)
 * (@offisapup)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/http_x_forwarded_host/)
 * When running behind a Apache httpd 2.4 reverse proxy, the value of the original
   hostname called is in HTTP_X_FORWARDED_HOST. I got round this by adding
 * `$_SERVER['HTTP_X_ORIGINAL_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];`
 * at the top of `installer.php` and (after step 1, the extraction) also to `dup-
   installer\main-installer.php` — but you may be better off with something that
   tests which is there, if any …

Viewing 1 replies (of 1 total)

 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/http_x_forwarded_host/#post-15284681)
 * Hey [@offisapup](https://wordpress.org/support/users/offisapup/),
 * Thanks for providing that work-a-round!

Viewing 1 replies (of 1 total)

The topic ‘HTTP_X_FORWARDED_HOST’ is closed to new replies.

 * ![](https://ps.w.org/duplicator/assets/icon-256x256.png?rev=2906985)
 * [Duplicator - Backups & Migration Plugin - Cloud Backups, Scheduled Backups, & More](https://wordpress.org/plugins/duplicator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicator/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicator/reviews/)

## Tags

 * [httpd](https://wordpress.org/support/topic-tag/httpd/)
 * [reverse proxy](https://wordpress.org/support/topic-tag/reverse-proxy/)

 * 1 reply
 * 2 participants
 * Last reply from: [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/http_x_forwarded_host/#post-15284681)
 * Status: resolved