Afficher un message
Vieux 06/04/2005, 16h46   #2
Juha Laiho
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache, Tomcat and PHP -- why not?

nospam@hanmail.net (No Such User) said:
>I am running Apache 2.0.53 with PHP 4.3.10 and tomcat 4.1.31 on Solaris 9.
>Apache runs PHP flawlessly, and tomcat runs via mod_jk through apache, also
>flawlessly. My one problem is, pages served up by tomcat to apache don't
>get run through PHP. I would like to put php code in my servlets, but
>right now that code gets passed through unexecuted.
>
>Is there any way I can get the output of servlets to be run through php
>before apache sends it all out?


I think I've seen some indications of being able to run the PHP interpreter
from within Tomcat. With that kind of set-up this might be possible.
That way you'd end up with chain Apache-Tomcat-PHP.

In context of Apache, PHP and Tomcat are parallel -- so they do not nest.
Perl (in form of mod_perl) has the capabilities needed to extend Apache
funtionality, so that would provide a way to modify content coming from
Tomcat.

But then, what are you doing that would be that much harder to implement
in Java, either as JSP includes, or by postprocessing in a Tomcat Valve
component (or even just a response filter)?
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
  Réponse avec citation
 
Page generated in 0,05249 seconds with 9 queries