httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From WiltOnTilt <aaronw...@hotmail.com>
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
.jsp.

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
</IfModule>
</VirtualHost>

--------------------------------------

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

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.

Ideas?

Thanks!!

Aaron
-- 
View this message in context: http://www.nabble.com/SSI-of-php-file-inside-JSP%2C-almost-there.....-tp14301792p14301792.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message