Having trouble proxying WordPress using mod_proxy
-
Hi There,
I’ve installed WordPress on a server under /my_blog/ it is configured to work as https://www.mysite.com/blog1/
Now, https://www.mysite.com points to a different server. This has Apache with mod_proxy and I’ve added the following line to httpd.conf
ProxyPass /blog1 https://192.168.100.60/my_blog
But whenever I hit https://www.mysite.com/blog1/ I get the “Nothing found for My_blog” error. Do I need to hack something in order to get this working?
Contents of .htaccess on the 192.168.100.60/my_blog/
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /my_blog/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /my_blog/index.php [L] </IfModule> # END WordPress
This diagram should give you more info on what I am looking to achieve.
https://filedb.experts-exchange.com/incoming/2011/03_w12/429694/LoadBalancing-via-mod-proxy.JPGPlease help.
- The topic ‘Having trouble proxying WordPress using mod_proxy’ is closed to new replies.