I am configuring 3 tiers setup(webserver, database server, and application server). I want to separate everything into 3 three servers. I have already separated between the application server and the database server. Regarding to webserver and application server, I don’t know how to config apache to point to my application server. I tried to share file and folder from application server to webserver already with samba share, but it still did not work. The problem is apache server can access the resource in the other server(application server).
If you everyone used to solved or faced this problem. Could you please help me?
Thank in advance.
2
Answers
You just need a basic reverse proxy configuration. The absolute basics are loading mod_proxy, mod_proxy_http, and using ProxyPass to match the URL’s you want to pass to the backend system.
As a part of an old assignment I had achieved something similar using below config.
For your case, I feel changing your Virtual Host as below must do the magic.
Also ensure that you enable the
lbmethod_byrequests_module
in your apache.