You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Randy Paries <rt...@gmail.com> on 2006/10/03 23:41:48 UTC

[users@httpd] Would like to use SSI for one particular file name instead of all types. IS that possible

Hello

I am running apache2

i am trying to figure a way to use SSI based on the file name and not the
file extension.

I can make it work fine if i do AddOutputFilter INCLUDES .shtml or
AddOutputFilter
INCLUDES .html

but i do not want to rename all my files to .shtml and i do not want to
parse all my html files.

XBitHack will not work for me either.

so is there a way i can have apache just parse something like main.html?

Thanks
Randy

Re: [users@httpd] Would like to use SSI for one particular file name instead of all types. IS that possible

Posted by Joshua Slive <jo...@slive.ca>.
On 10/3/06, Randy Paries <rt...@gmail.com> wrote:
> Hello
>
> I am running apache2
>
> i am trying to figure a way to use SSI based on the file name and not the
> file extension.

>
> so is there a way i can have apache just parse something like main.html?

<Files main.html>
SetOutputFilter INCLUDES
</Files>

(But be aware this will apply to any file named main.html in the
<Directory> section where you place this or in any subdirectories.)

Joshua.

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