Title: rdkwp's Replies | WordPress.org

---

# rdkwp

  [  ](https://wordpress.org/support/users/rdkwp/)

 *   [Profile](https://wordpress.org/support/users/rdkwp/)
 *   [Topics Started](https://wordpress.org/support/users/rdkwp/topics/)
 *   [Replies Created](https://wordpress.org/support/users/rdkwp/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/rdkwp/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/rdkwp/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/rdkwp/engagements/)
 *   [Favorites](https://wordpress.org/support/users/rdkwp/favorites/)

 Search replies:

## Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP behind apache reverse proxy](https://wordpress.org/support/topic/wp-behind-apache-reverse-proxy/)
 *  Thread Starter [rdkwp](https://wordpress.org/support/users/rdkwp/)
 * (@rdkwp)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/wp-behind-apache-reverse-proxy/#post-12855774)
 * Hi!
 * Ahh, I think I ran into this as well.
 * I originally put everything in subdirectory “lab” and it was still broken.
 * I moved everything into main directory and then linked lab to main directory.
 * In my main root install dir, I have:
 * index.php
    wp-config.php readme.html lab soft-link to . all the other php files.
 * Once I did this, it started working.
 * ln -s lab .
 * Bobby
    % ls -l lab lrwxrwxrwx 1 root root 1 Feb 4 16:16 lab -> .
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP behind apache reverse proxy](https://wordpress.org/support/topic/wp-behind-apache-reverse-proxy/)
 *  Thread Starter [rdkwp](https://wordpress.org/support/users/rdkwp/)
 * (@rdkwp)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/wp-behind-apache-reverse-proxy/#post-12854538)
 * Hi!
 * In /var/www/html, I added a soft link. For you, I would try ln -s blog .
 * Also, in my wp-config.php file, I added a def for WP_SITE_URL but not sure if
   it matters.
 * Finally, in wp-config.php, I also added:
 * $_SERVER[‘REQUEST_URI’] = ‘/lab’ . $_SERVER[‘REQUEST_URI’];
 * Hope this helps,
 * Bobby
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP behind apache reverse proxy](https://wordpress.org/support/topic/wp-behind-apache-reverse-proxy/)
 *  Thread Starter [rdkwp](https://wordpress.org/support/users/rdkwp/)
 * (@rdkwp)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/wp-behind-apache-reverse-proxy/#post-12556880)
 * Hi!
 * Here are my apache settings:
 * <Location /lab>
    RequestHeader set X-Forwarded-Proto “https” RequestHeader set
   X-Forwarded-Port “443” ProxyPass [http://XXX:8100](http://XXX:8100) ProxyPassReverse
   [http://XXX:8100](http://XXX:8100) Order allow,deny Allow from all </Location
   >
 * In wp-config.php:
 * define(‘WP_SITE_URL’,’[https://xxx/lab&#8217](https://xxx/lab&#8217););
    define(‘
   WP_SITEURL’,’[https://xxx/lab&#8217](https://xxx/lab&#8217);); define(‘WP_HOME’,’
   [https://xxx/lab&#8217](https://xxx/lab&#8217););
 * In .htaccess:
 * <IfModule mod_rewrite.c>
    RewriteEngine On RewriteBase /lab/ RewriteRule ^index\.
   php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}!-
   d RewriteRule . /lab/index.php [L] </IfModule>
 * And finally in /var/www/html, I added a softlink lab that points to .
    ln -s 
   lab .
 * Hope that helps. Let me know if you have more specific questions. Feel free to
   email me. I’ll make sure my profile has my email address.
 * Bobby
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP behind apache reverse proxy](https://wordpress.org/support/topic/wp-behind-apache-reverse-proxy/)
 *  Thread Starter [rdkwp](https://wordpress.org/support/users/rdkwp/)
 * (@rdkwp)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/wp-behind-apache-reverse-proxy/#post-12421833)
 * Hi!
 * I managed to get everything working through combo of edit to wp-config.php, setting
   site-url and address-url, plus placing a link in the install directory pointing
   the subdir to install dir.
 * Bobby
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP behind apache reverse proxy](https://wordpress.org/support/topic/wp-behind-apache-reverse-proxy/)
 *  Thread Starter [rdkwp](https://wordpress.org/support/users/rdkwp/)
 * (@rdkwp)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/wp-behind-apache-reverse-proxy/#post-12393792)
 * Hi!
 * I’m almost there. I set the site address and install address URLs to be my xxx/
   lab URL. Its almost working now.
 * Now, I’m getting the dreaded exceeded limit redirect error in the wordpress apache
   log. I think I need to tweek my wordpress .htaccess file.
 * I’ve been searching for a while now. Any pointers on how to fix this? I can see
   the main page of my wordpress site but any links to it have correct URL but they
   generate the internal-server error. Ugh.
 * Bobby
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP behind apache reverse proxy](https://wordpress.org/support/topic/wp-behind-apache-reverse-proxy/)
 *  Thread Starter [rdkwp](https://wordpress.org/support/users/rdkwp/)
 * (@rdkwp)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/wp-behind-apache-reverse-proxy/#post-12388647)
 * Hi!
 * When I changed the WP address and Site address URLs to be XXX/lab it broke my
   access and I had to go into the database to change them back.
 * Kinda surprised that there is no good cheat sheet for getting my setup to work.
 * When I get it to work, I’m happy to submit something.
 * Thanks,
 * Bobby
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP behind apache reverse proxy](https://wordpress.org/support/topic/wp-behind-apache-reverse-proxy/)
 *  Thread Starter [rdkwp](https://wordpress.org/support/users/rdkwp/)
 * (@rdkwp)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/wp-behind-apache-reverse-proxy/#post-12388601)
 * Hi!
 * Thanks for your reply. My reverse proxy is for the path /lab That is, I want 
   my apache reverse proxy to map anything /lab/ to go to the WP/container on port
   8100.
 * My wordpress is running on port 8100 in a container. I’ve left the WP Install
   Address URL unchanged — XXX:8100 I changed site address to XXX/lab
 * What I get back is some of the WP content properly puts XXX/lab but images, CSS,
   icons, etc all say XXX:8100 and not XXX/lab
 * Make sense? I can provide more specific URLs if you need.
 * Thank you,
 * Bobby

Viewing 7 replies - 1 through 7 (of 7 total)