Ruby on Rails
ProxyPreserveHost patch for Apache 1.3

To gain access to the ProxyPreserveHost directive in Apache 1.3.x, you will need to patch the mod_proxy source and then rebuild it into Apache (using apxs):

  1. Note the directory where your Apache 1.3.x source is stored; consider making a backup
  2. Download the Mod Proxy Patch
  3. Run patch -i mod_proxy_patch.txt
  4. Every time a prompt comes up, take a look at the path to the right of +++. Supply that path to the prompt, replacing apache_1.3.24 with the full path to your own Apache source directory
  5. Jump into Apache’s src/modules/proxy/ directory and run apxs -i -c *.c on your newly patched files! The module will be installed and your http.conf file should be updated.