httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From WiltOnTilt <>
Subject [users@httpd] SSI of php file inside JSP, almost there.....
Date Wed, 12 Dec 2007 19:08:13 GMT

Hi all,

As the title suggests I'm trying to do a server side include of a .php file
in my jsp such that apache will run the php and of course tomcat handles the

Here's what I've got so far:

httpd.conf in the section for my virtual server:

SetEnvIf Request_URI "/blog*" no-jk

<IfModule mod_jk.c>
JkMount /* ajp13


It basically appears that the

SetEnvIf Request_URI "/blog*" no-jk

line simply does not work.

the /blog directory is outside of my war in my apache document root. It
holds .php and .css files for my wordpress blog.

Whenever I try to access a php file in the blog directory it tries to send
the request to tomcat instead.

If I take out the SetEnvIf and instead put lots of "JkMount /*.XXX ajp13"
where XXX is EVERY file extension EXCEPT for .php extension, then the .php
files will run in apache perfectly and the SSI in my .jsp works -- however
that means when the .php files run if they reference any .css or .js or
images, it's going to send the request to tomcat under the base /appname
directory, meaning now the relative paths to those files are broken (they
live under /blog but because of the JkMount /*.css they now start looking in
tomcat /appname).

Any idea what I could try to do in order to fix this?

Basically what I need is this:

a) directory "php" in my war file where apache will execute everything in
that directory and


b) the wordpress /blog directory, that lives outside of my war, to have
everything inside it be executed by apache and allowing all other stuff
(except for what's in a) to be executed by tomcat.



View this message in context:
Sent from the Apache HTTP Server - Users mailing list archive at

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message