• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple subdomains on the same context

 
Daniil Sosonkin
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I didn't find a forum for Tomcat so I'll ask here, maybe someone will be able to help.

I have a website (www.site.com) and that website has a forum. But since I want to have nice looking easy to remember URLs, the forum is located at forum.site.com

Users login to www.site.com and the forum and site use the same users and obviously I dont want to have users login twice to post on forum. How can I configure tomcat so that servlets/JSPs see seession from www.site.com?

Its all on vitual domains right now (apache->mod_jk->tomcat).

Any help is appreciated,

Daniil
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Daniil Sosonkin:
I didn't find a forum for Tomcat so I'll ask here, maybe someone will be able to help.


It's under products on the front page of the forum.
http://www.coderanch.com/forums/f-56/Tomcat
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can set up multiple virtual hosts in Tomcat
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html

What I'm not sure of is how using Apache as a front end affects this.
I use Tomcat as a standalone.
 
Daniil Sosonkin
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx,

But is seems that there's no way to implement this. Since session isn't shared across multiple virtual hosts I can't use multiple Host. I can't use Alias inside a Host since there's no way to tell Tomcat to look into different dir for forum files.

Oh well
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic