Re: Serve html file parsed for ssi
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Sun, 29 Apr 2007 18:12:57 -0500
Alice wrote:
I'm not the machine admin. So I don't know how I would be able to configure Apache to parse html files through both.
There has got to be a way to do this.
"Jerry Stuckle" <jstucklex@xxxxxxxxxxxxx> wrote in message news:VuednZKYPYvINqnbnZ2dnUVZ_uTinZ2d@xxxxxxxxxxxxxxAlice wrote:How can I make php script serve up an *.html file 'server-parsed' for SSI's?A terrible approach. But just set your Apache configuration up to parse html files through both.
The goal is to pre-process all *.html files with php script, but the SSI's need to be handled too. Problem with using 'virtual' is that it creates a loop via the .htaccess handler setting/action.
.htaccess
# Enable SSI
Options +Includes
# HTML Handler
AddHandler HTML .html
Action HTML /HTML.php
HTML.php
<?PHP
<snip>
$file = $_SERVER['PATH_TRANSLATED'];
include $file;
?>
Try alt.apache.configuration for more info.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
The correct way is to modify your Apache configuration to do it. If you aren't the server admin, then get the server admin to set it up for you.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- References:
- Serve html file parsed for ssi
- From: Alice
- Re: Serve html file parsed for ssi
- From: Jerry Stuckle
- Re: Serve html file parsed for ssi
- From: Alice
- Serve html file parsed for ssi
- Prev by Date: Re: using echo but need something to execute php code
- Next by Date: Re: Serve html file parsed for ssi
- Previous by thread: Re: Serve html file parsed for ssi
- Next by thread: Re: Serve html file parsed for ssi
- Index(es):
Relevant Pages
|