What is the correct way to configure mod_proxy_ajp to only server dynamic content, i.e. jsp's and servlets? I'm just trying to move my mod_jk configuration to mod_proxy_ajp. The configuration I gave below seems to work, but I'm guessing Apache passes all requests, static and dynamic, under /jsp-examples to Tomcat. I used to use this type of configuration with mod_jk: JkMount /jsp-examples/servlet/* ajp13 JkMount /jsp-examples/*.jsp ajp13 JkMount /jsp-examples/*.jsp/* ajp13 I tried doing something somewhat similar with mod_proxy_ajp, but it didn't pass anything to Tomcat: ProxyPass /jsp-examples/servlet/* ajp://localhost:8009/jsp-examples/servlet/* ProxyPassReverse /jsp-examples/servlet/* ajp://localhost:8009/jsp-examples/servlet/* ProxyPass /jsp-examples/*.jsp ajp://localhost:8009/jsp-examples/*.jsp ProxyPassReverse /jsp-examples/*.jsp ajp://localhost:8009/jsp-examples/*.jsp ProxyPass /jsp-examples/*.jsp/* ajp://localhost:8009/jsp-examples/*.jsp/* ProxyPassReverse /jsp-examples/*.jsp/* ajp://localhost:8009/jsp-examples/*.jsp/* I can guarantee that everything under /jsp-examples/servlet are servlets, but there are static files under /jsp-examples that I need Apache to serve and not have them passed along to Tomcat. I might be way out in left field here. I would greatly appreciate directions on how to properly configure this. Thanks. , Josh. > -----Original Message----- > From: Nick Kew [mailto:nick@xxxxxxxxxxxx] > Sent: Tuesday, December 20, 2005 11:31 AM > To: users@xxxxxxxxxxxxxxxx > Subject: Re: [users@httpd] mod_proxy_ajp > > > On Tuesday 20 December 2005 17:19, Fenlason, Josh wrote: > > > Alias /jsp-examples "D:/test/tomcat/webapps/jsp-examples" > > <Directory "D:/test/tomcat/webapps/jsp-examples"> > > Options Indexes FollowSymLinks > > AllowOverride None > > allow from all > > </Directory> > > > > ProxyPass /jsp-examples ajp://localhost:8009/jsp-examples > > ProxyPassReverse /jsp-examples ajp://localhost:8009/jsp-examples > > That's a conflict: you're asking it to do two incompatible > things with requests matching /jsp-examples. > > > This above configuration allows jsps to be served correctly, but I > > want to make sure that Apache is serving any static content > under the > > /jsp-examples directory and not Tomcat. Thanks in advance. > > And how do you expect Apache to know that a request is "any > static content"? You would need to tell Apache how you expect > it to make that decision. The usual way to do that is to > configure different behaviours for different URLs. > > -- > Nick Kew > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP > Server Project. See > <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx