Solved

JBOSS / Apache Web Server Question

Posted on 2003-10-28
7
1,455 Views
Last Modified: 2008-02-01
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
Comment
Question by:AndySulz
  • 3
7 Comments
 
LVL 9

Expert Comment

by:vzilka
ID: 9644740
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
 
LVL 2

Expert Comment

by:rootkiddy
ID: 9673261
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
 
LVL 2

Author Comment

by:AndySulz
ID: 9684049
What is the full name for the mod_jk ?
0
 
LVL 9

Accepted Solution

by:
vzilka earned 125 total points
ID: 9684554
mod_jk2.

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

0
 
LVL 9

Expert Comment

by:vzilka
ID: 9726057
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

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SSRS producing multiple worksheets in EXCEL 2 247
Sharepoint application home page 4 159
SSL vs TLS ? 9 86
Wesphere App server multiple instances on single Windows server 5 87
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question