Hi all,
I could understand which forum to put this post in but then I feel it is important that people do take a note of it.
In my previous posts on LQ I was discussing errors which I faced while using a reverse proxy on apache2 and Content Management Systems.
Here are a few findings which I feel should be documented.
The problem I had was previously I configured some sites like this before formatting my server
http://myserver.com/site2
and now like this after formatting
http://site1.myserver.com
now here comes the problem.
if I want to use both the type of settings
http://site1.myserver.com
http://myserver.com/site2
Where I have been struggling and Googling for things. If you use a framework such as Grails,Drupal,Joomla or try to use some thing then there is a thing known as X-Forwarded-For in the headers of the site which reverse proxy will pass it on.
The internal site in both the above cases has to be configured differently.So that it works on the client side properly.
Some googling will tell to css to load on client side at some place on configuration you need to activate a variable this variable will be different in Joomla and different on another web CMS.
If you program in PHP no frame work then you have to have a different strategy to maintain session. Like this.I wish if while installing CMS or some thing on client side the servers or CMS's can ask the person if he is using reverse proxy.
In both the cases
http://site1.myserver.com
and
http://myserver.com/site2
settings are different and settings are even different if you have multiple sites and each on different framework that makes the work difficult.It took me hours to figure all that out and probably more than a week before I could make things work.
I am giving two links which were very useful to me
http://wiki.uniformserver.com/index....mod_proxy_html
http://swik.net/MySQL/Planet+MySQL/O...pache%29/dcslr
and
http://wiki.apache.org/httpd/CommonMisconfigurations
http://www.linuxquestions.org/questi...=1#post3946064
http://planet.mysql.com/entry/?id=22457
Would like to thank all those LQ members who helped me in reaching this conclusion and making things work.