I am hoping someone can help me with a solution. I have a main website that is also acting as a reverse proxy. Thes proxy is a frontend to a few other web servers on the backend. All is working o.k... What I'm looking to do now is to put in place some kind of access control so that the proxy will ONLY serve web pages from those who are authenticate from the main site. Again, the main site in on the same server as the proxy.
Here's the setup:
The www.mainsite.com has my CMS users where they can sign-up and authenticate. What I want is: If users enter url server1.mainsite.com then the proxy would somehow prompt users to first login. But, I'm not sure how this can be done/achieved. Should I look into Mod_Rewrite? I am not to experience in Mod_Rewrite - Can anyone help! I need to have this setup ASAP!
I would appreciate any comments/suggestions to accomplish this.