Re: Serve html file parsed for ssi



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@xxxxxxxxxxxxxx
Alice wrote:

How can I make php script serve up an *.html file 'server-parsed' for
SSI's?

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;
?>


A terrible approach. But just set your Apache configuration up to parse
html files through both.

Try alt.apache.configuration for more info.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================


.



Relevant Pages

  • Re: Calling a perl script from an html doc
    ... > created as html files on a linux server, and they pop up in IE6 on our local ... Maybe you need to re-think this and write a perl script that collects the data ... You can use CGI with the Apache webserver and execute perl scripts either by ...
    (comp.lang.perl.misc)
  • Problems with apache2 and charsets
    ... My apache seems to ignore the charset meta data in the html files, ... iso-8859-1 then the iso pages are shown correctly but not utf-8 ones. ...
    (Debian-User)
  • Re: Problems with apache2 and charsets
    ... My apache seems to ignore the charset meta data in the html files, ... iso-8859-1 then the iso pages are shown correctly but not utf-8 ones. ...
    (Debian-User)
  • Re: Serve html file parsed for ssi
    ... The goal is to pre-process all *.html files with php script, but the SSI's need to be handled too. ... But just set your Apache configuration up to parse html files through both. ...
    (comp.lang.php)
  • Re: Linux/Apache Chat
    ... So I've got all these html files and I am trying to view them via ... Apache ... It seems that the Linux server can't handle any special characters. ...
    (rec.sport.football.college)