I am using Apache on Linux to proxy all requests to the site to tomcat, so that I can use virtual hosting and use https. My webapp in tomcat is /epub but I set up apache proxypass and proxypassreverse to map / to http//localhost:8081/epub/
I do all of this so that I can login to my website via facebook.
(NOTE: this is not a real site and I had to set up /etc/hosts and apache virtual hosting for my sitename that I registered with facebook.)
In tomcat server.xml I set the Connector element as follows:
<Connector port="8081" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"
proxyPort="80"
proxyName="andyssite2.com"/>
But did not set anything for executor shared thread pool for this port.
Here's what's not working:
bug 1) when I go to my loginservlet, I check if a session exists. If not I create one and save the "hash" request parameter as an attribute of the session. Then redirect to facebook per their OAuth server flow scheme. When facebook redirects back to my loginservlet, the HttpSession exists, but the "hash" attribute is lost. (I would rather save in the session than in a cookie.)
bug 2) I then get the rest of facebook user info, and redirect to "/index.html". The browser shows my url as "http://andyssite2.com/index.html#_=_" and this causes problems because my javascript loaded by index.html is not prepared for the hash _=_ that somehow comes into play. I also tried redirecting to my site using an absolute url and got the same problem with the hash of _=_ and my question is what is causing this spurios hash to get added.
I have the latest apache for Centos6.
Andy