Can you help me? I have two servers with all permissions in CentOS, assigned IPs, and a subdomain that pointing to one, where there a static website. But, the other server has a blog on WordPress. The question is how pointing from a folder to another server. Thus:
subdomain.domain.com >> IP: 1.2.3.4
subdomain.domain.com/blog >> ANOTHER: 2.3.4.5
Your best bet is to use something like mod_proxy to reverse proxy requests for blog related resources to your WordPress Server.
So something like:
One more point to mention, in the example above I reverse proxying to a resource identified by the hosts IP address. I would strongly recommend using a hostname and DNS instead since DNS is a good thing:
Obviously you”l need to add 2.3.4.5 to DNS (or host hack accordingly)