This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

jkMount with apache loading glassfish subdomains

 
Bartender
Posts: 3648
16
Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all, I have this scenario. Suppose I have a domain called "test.com" running apache. Then I install glassfish and mod_jk.

Now say I have a subdomain called "abc.test.com" such that this URL will route to glassfish app called "abc". Without mod_jk I can access this using "test.com:8080/abc" but instead I want to use mod_jk and point to "abc.test.com".

So I add the JKMount directive in my apache custom settings like this:


But now if I do that my default index page will load up glassfish index page. If I do "JkMount /*.test.com ajp13" or "JkMount /abc.test.com ajp13" it doesn't seem to work.

Do I need to do anything on Glassfish side like setting up virtual hosts? I hope not

Thanks
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that this is a really old post, but I am having the exact same issue and I was wondering if there are some good examples that someone could point me to in order to resolve this issue.

Thanks,
John
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!