Jetty serving static content behind Apache

View: New views
1 Messages — Rating Filter:   Alert me  

Jetty serving static content behind Apache

by TomV :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'd like to run Jetty behind Apache and have Jetty serve both static content and dynamic content.  Static content would be served by a Jetty ResourceHandler pointing at some /var/www/docroot location and dynamic content would be handled by a WAR deployed to a Jetty ContextHandler.

Apache basically just sits in front as a dumb proxy pass server (long story, but I can't not have Apache)

I've noticed that if I use an AjpSocketConnector in my jetty.xml, the ResourceHandler doesn't ever seem to receive the requests for static content.  Apache is proxying everything to jetty with the ajp:// protocol, so I'm not sure where to go from here.

Does anyone have any suggestions?