PDA

View Full Version : Adding PHP to all virtual hosts by default


cfconcepts
09-18-2009, 05:45 PM
Hello,

PHP runs great in the default www directory but when I add a new virtual host it doesn't have PHP enabled by default.

Can anyone point me to the documentation on how to do this?

Thanks!

Randy

ferg
09-21-2009, 04:50 PM
In Resin, the <web-app-default> tag creates defaults for every web-app in the context. For example, the standard file servlet and *.jsp are defined in a web-app-default in the conf/app-default.xml file.

So, for Quercus, just add the servlet-mapping inside a <web-app-default> in the resin.xml inside the <cluster> tag.