httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jani Mikkonen <>
Subject [users@httpd] retry on Migration problem
Date Wed, 16 Oct 2002 08:14:15 GMT

I would like to migrate to Apache2 asap but there is few problems i must
overcome before i can do anything.

Ill describe my problem first:

Many websites which are build using template files and content is
included into right sections using <!--#include virtual="content.php"-->

Even before i had thougts about migrating to apache2, i wanted to
seperate all php code to only certain servers. But the problem is that i
dont have enough time (nor will) in my hands to start rewriting all the
ssi templates to use some different method..

So, i thought, ill rewrite all the pageloads which containg .php to go
to some other machine.

Simple example

Rewriterule /php/content.php [p}
(ofcourse, i wouldnt do rewrite like this, its only to make things more

This works just fine the php request is coming from user but not from
ssi. Meaning, if user requests a url: it will get the page BUT if

<!--#include virtual="/php/content.php" --> 

Rewrite doesnt work...

Tried the same thing with mod_proxy but i didnt seem to get that working
at all.

Next thougt that came to me is writing somekind of cgi wrapper because
atleast manuals say that include can be cgi program. Example:


I think this might work but. Adding multiple cgi invocations to the main
page of heavytraffic website kinda spooks me.

Any ideas, suggestions what would be the right way to deal with this ? 

 | ,_,    Jani Mikkonen, Bastard Operator From Hell, +358456700349
 |(   )    Public pgp key @
 +-"-"-------] Gadgets run with smoke, when it leaks, things stop working.

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