rdkwp
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WP behind apache reverse proxyHi!
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
In reply to: WP behind apache reverse proxyHi!
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
In reply to: WP behind apache reverse proxyHi!
Here are my apache settings:
<Location /lab>
RequestHeader set X-Forwarded-Proto “https”
RequestHeader set X-Forwarded-Port “443”
ProxyPass http://XXX:8100
ProxyPassReverse http://XXX:8100
Order allow,deny
Allow from all
</Location>In wp-config.php:
define(‘WP_SITE_URL’,’https://xxx/lab’);
define(‘WP_SITEURL’,’https://xxx/lab’);
define(‘WP_HOME’,’https://xxx/lab’);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
In reply to: WP behind apache reverse proxyHi!
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
In reply to: WP behind apache reverse proxyHi!
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
In reply to: WP behind apache reverse proxyHi!
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
In reply to: WP behind apache reverse proxyHi!
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