• 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Apache and Tomcat accessing other Directories

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Right now I have Apache fronting for Tomcat so that www.foo.com goes to my Tomcat (from Glassfish) webapp
The issue is that I want to specify another directory for uploaded ftp files
www.foo.com/ftp

However everything I try gets sent to Tomcat giving me resource not found errors from Glassfish

However my SVN access stuff works fine, so I know something can override the fronting, I just don't know how to (I've tried, pherhaps using the wrong syntax using Alias and VirtualHosts but those were just guesses and I didn't know how to really implement them)

 
Mike Spenser
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
*bump* any help?
 
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

so that www.foo.com goes to my Tomcat (from Glassfish) webapp



Can you explain the relationship between Glassfish and Tomcat in your setup?

Both Tomcat and Glassfish are servlet containers so I don't understand why you would be running both.
 
Mike Spenser
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its just Glassfish, not Tomcat. Apache is fronting to it. However the setup for mod_jk would be the same essentially for both Tomcat & Glassfish in my current configuration.
 
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
Maybe but within Tomcat, configuration needs to be done when using directories other than the default 'webapps'.

Glassfish was a fork of Tomcat at one point but it is, now, a different product. Leaving this thread here has too much potential for confusion.

Moving to the Other Java Products and Servers Forum...
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Right now I have Apache fronting for Tomcat "

Are you sure you're using the idiom "Fronting" properly? In my experience, it is spelled "fruntin'" and means "one thing pretending to be something it is not". For example: "Homes was fruntin' a pimp when he bee-atch slapped 'dat ho' for not giving up her money". Similar idioms include "perpetratin' a fraud", and "dumnuts".

:-)
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic