I've never run across this before...
I've been messing with different apache servers at home while at work. Before I got the proxypass working, I needed to be able to hit server number two from outside the local network.
I did it by setting up port forwarding on my router (linksys running dd-wrt). It went something like
my.pub.ip.add:28000 forwarded to server number two's
:80. Worked fine. That's what I needed.
So, I finally set up the proxypass on server number one to forward requests from my www.domain.com to server number two, meaning I'd no longer require the port forwarding to hit server two directly.
Now, when I go to
www.domain.com from a browser, it times out, but it does so with my server two's local IP in the address bar, appended with the original (and seemingly totally unrelated) public port I'd set up earlier.
www.domain.com, times out with
192.168.x.x:28000 in the address bar.
I can accept that my apache config is not yet correct, but even when trying to hit server two from inside the LAN, just typing
192.168.x.x, it still appends that port. I can try something like
192.168.x.x:80 and it still replaces it with
I've turned off the port forwarding I'd used earlier. I did that immediately because the random port I'd used to get into my LAN was sitting right out there!!
I ssh'd into the dd-wrt router and flushed the dnsmasq, thinking that may have hung on to something, per a suggestion on a google search.
And it otherwise seems to be a difficult thing to google for.
To be honest, I'm not really sure where to be focusing my attention. The router, because it's the gateway and local dns? The apache install on server 2? The Ubuntu OS that is server 2?
The question, in the end, is why is the port that I made up to direct public traffic to my server two being appended to local and external requests to server two even after removing that port forwarding rule?
Starting to narrow it down. It seems to be an issue with Wordpress. Basically, I did the Wordpress install via ssh, but then the initial configuration and testing with a browser (hence the port forwarding).
It would seem that the Wordpress install is stubbornly hanging onto the method of access from before. Any recommendations on where to focus in the Wordpress install?