Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Fronting with Apache HTTPD

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I wonder if it is possible to front JForum with a different url than the servlet that JForum is installed at. Hard to explain in words so here is my setup:

I call apache on http://localhost/forum/ it correctly forwards to Tomcat and I get the text from the forum base page but all pictures and links there are broken since they use /JForum-2.1.6/ as base (servlet context) not just /forum/. (I thought that if I put forum url to http://localhost/forum/ it would be respected by the JForum servlet now it seems to use the servlet context)

I my my Apache httpd.conf I have
<Location /forum/>
ProxyPass ajp://localhost:8009/JForum-2.1.6/
</Location>

Maybe I could fix it with a better Apache config but I can't find any setup infor for mod_jk1 on windows for v2.2+ any tip is most welcome

PS An idea would be to have a separate servlet context variable in the admin configuration
[originally posted on jforum.net by osundblad]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your context will have to be called "/jforum" as well. There is no other way to do that.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
we are also trying to front jforum on apache. the only problem is after the message post redirect, it goes to the tomcat url instead of apache. any ideas on this one? i'm beginning to think it is a tomcat configuration issue.

thanks!

t
[originally posted on jforum.net by tzurkan]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic