No. In server.xml (tomcat's config file), the <Connector .... /> element receiving proxied requests from Apache HTTPd needs proxyName="www.mysite.com" and proxyPort="80" to properly handle cookies and writing URLs.

There are commented examples of this in the original server.xml file distributed with tomcat.

--David

Darren Hall wrote:

Thanks David,

For using mod_proxy, have you also added proxy_name and proxy_port attributes to the connector receiving proxied requests? Those will need to be set so tomcat can create the session cookie correctly.

I don't believe I'm setting any of these things. Correct me if I'm wrong,
but the changes that you're talking about need to be configured on the
Apache side? Below I've posted the relevant portion of my httpd-vhosts.conf
file. I've been looking online for a "tutorial" of some kind to show me how
I need to configure this, but I haven't had a lot of luck yet (other than
tutorials that go into clustering and load-balancing... neither of which I
need). Any help in getting this working would be greatly appreciated. (As you can see, I'm currently playing with getting the pass through
mod_proxy to use sticky_sessions, but this doesn't yet appear to be
working.)

- D

<VirtualHost www.mydomain.com:80>
   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot /var/www/mydomain/htdocs
   ServerName flc3.mydomain.com
   ErrorLog /var/www/flc/logs/www.mydomain.org-error_log
   CustomLog /var/www/flc/logs/www.mydomain.org-access_log common
   ProxyRequests Off
  # ProxyPass /flc http://localhost:8080/flc
   ProxyPass /flc balancer://localhost:8080/flc stickysession=JSESSIONID
nofailover=On
   <Proxy balancer://localhost>
     BalancerMember http://localhost:8080
   </Proxy>
   ProxyPassreverse / http://localhost:8080/flc/
   RewriteEngine on
   RewriteCond %{REQUEST_URI} !^/flc
   RewriteRule ^/(.*)$ /flc/$1 [P]
</VirtualHost>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to