ProxyPass to internal WordPress server from internet
-
I have a WordPress installation on my local LAN which I’m accessing as http://bitwp.edwards.local/. But I also want to be able to access it from the internet when I’m off the premises.
I have a dynamic DNS hostname of xxxxxxx.dtdns.net and there is an apache web server in the DMZ server listening on port 8000. So I can successfully access other internal sites with URLs such as http://xxxxxxx.dtdns.net:8000/server1 http://xxxxxxx.dtdns.net:8000/server2 etc by using apache ProxyPass directives on the DMZ.
But when I try to do this for the WordPress site on my local LAN, I can get the home page up but the images are all broken and none of the links to any of the posts work.
From what I’ve read this is because the WordPress server is using xxxxxxx.dtdns.net:8000 as the URL for links, which obviously isn’t valid. So how do I get this working?
My ProxyPass directives on the DMZ look like this:
<Location "/wordpress"> ProxyPass http://bitwp.edwards.local/ ProxyPassReverse http://bitwp.edwards.local/ </Location>
The topic ‘ProxyPass to internal WordPress server from internet’ is closed to new replies.