• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

multiple subdomains on the same context

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
https://coderanch.com/forums/f-56/Tomcat
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ruth Stout was famous for gardening naked. Just like this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic