Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: new session is created for every request. |
|
Author |
|
t_mouli
Joined: 16 Jun 2011 Posts: 1
|
Posted: Fri 17 Jun '11 10:16 Post subject: new session is created for every request. |
|
|
Hi,
for ever request the new session is getting created, I have two webapps on two websphere containers, and I have the proxypass configured in httpd.config as given below, but for each request a new session is created I am not able to maintain the session, please help.
Code: | LoadModule ibm_ssl_module modules/mod_ibm_ssl.so
Listen 0.0.0.0:443
## IPv6 support:
#Listen [::]:443
<VirtualHost *:443>
ServerName localhost
SSLEnable
SSLProxyEngine on
#SSLProtocolDisable SSLv2
#DocumentRoot "D:/Program Files/IBM/HTTPServer/htdocs"
#Options FollowSymLinks
# For Tomcat reverse proxy setup
# mod_proxy setup.
ProxyRequests Off
ProxyPreserveHost On
# Entries below correspond to the Tomcat Servlet engine that will form part of the Proxy infrastructure
ProxyPass /Proxy1 https://localhost:9443/Proxy1
ProxyPassReverse /Proxy1 https://localhost:9443/Proxy1
# Entries below correspond to the Tomcat Servlet engine that will be the ACTUAL Webserver
ProxyPass /WebApp1 https://localhost:9444/WebApp1
ProxyPassReverse /WebApp1 https://localhost:9444/WebApp1
RewriteEngine on
#RewriteCond %{SERVER_PORT} ^7080$
#RewriteCond %{SERVER_ADDR} ^localhost$
#RewriteCond %{HTTP_HOST} ^localhost?:7080$ [NC]
RewriteCond %{REQUEST_METHOD} ^POST
RewriteCond %{QUERY_STRING} !^fromproxy=yes&(.*)$
RewriteRule ^/WebApp1/(.*)$ https://localhost/Proxy1/$1 [NC,L,P]
#RewriteCond %{QUERY_STRING} !^fromproxy=yes&(.*)$
#RewriteRule ^/WebApp1/(.*)$ http://localhost/Proxy1/$1 [NC,L,P]
#RewriteRule ^/WebApp1/.*$ http://localhost/Proxy1 [R=301,NC,P]
#RewriteRule ^/WebApp1 http://localhost/Proxy1
# RewriteBase /WebApp1/
# RewriteRule ^/WebApp1/ /WebApp1/
ProxyPassReverseCookieDomain localhost public.localhost
ProxyPassReverseCookiePath / /WebApp1
#ProxyPassReverseCookiePath / /Proxy1
#ProxyPassReverseCookiePath /WebApp1 /Proxy1
#Header edit Location ^([^/]*//[^/]*)?/(.*)$ $1/Proxy1
#Header edit Location ^http://localhost/WebApp1 http://localhost/Proxy1
</VirtualHost>
KeyFile "D:\mouli\newkey\proxykey.kdb"
SSLStashFile "D:\mouli\newkey\proxykey.sth"
SSLDisable
SSLClientAuth none |
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 14 Jul '11 20:32 Post subject: |
|
|
Why don't you use loadblancer config with a sticky session? What the server and client should keep the session.
At least in the normal apache 2.2 you can do that. I'm not sure with your ibm stuff, but it can, cause the ibm http is apache based. |
|
Back to top |
|
|
|
|
|
|