• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1466
  • Last Modified:

JBOSS / Apache Web Server Question

I'm using Apache to virtual host for my JBoss Application Server.  Here is part of the Apache config:


<VirtualHost *>
    ServerName myserver.com
    ProxyPass / http://localhost:8080/myapp/
    ProxyPassReverse /  http://localhost:8080/myapp/
</VirtualHost>


Now, when I goto myserver.com it does indeed serve up the correct pages.  The problem is, everytime I click on a link it invalidates the session so I have a new session ID every time I click a link.  That is not good considering I use the session ID.

Any suggestions is greatly appreciated.
0
AndySulz
Asked:
AndySulz
  • 3
1 Solution
 
vzilkaCommented:
Why aren't you using mod_jk?
This will make Apache communicate with JBoss's embedded Tomcat using the AJP13 connector which is must faster, and it will pass all parameters to Tomcat as well.
0
 
rootkiddyCommented:
This sounds like a context issue.  To check you can set your browser to display your cookies before accepting them.  Check this as the cookie probably is setting the context to /myapp so when you make the request to /something else its getting lost.  If you don't like or can't use zvilka's suggestion you can try to chane the ProxyPass and ProxyPassReverse to /myapp/.
0
 
AndySulzAuthor Commented:
What is the full name for the mod_jk ?
0
 
vzilkaCommented:
mod_jk2.

You can get more information on how to use it on http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/

0
 
vzilkaCommented:
Hi Andy,

Was that helpful?
The problem you described is relevant to mod_rewrite. It seems this is what you are using. mod_jk2 totally solved this issue.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now