You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Teren Teh <tt...@oanda.com> on 2009/10/22 20:21:43 UTC

[users@httpd] Server Side Includes for certain files

Hi there,

I'm wondering if there's anyway possible to selective choose which files 
to be processed for SSI? At the moment, all .shtml files are being 
processed. However, not all of these are required to be processed and 
for efficiency, I'd like to not process them. An option would be to 
rename these files to .html but that would break my linking structure 
and thus I would have to rename every reference of that file.

Would there be something that I can do to interject before Apache 
processes the server side includes? Such as checking for certain 
directories and if there are .shtml files in certain directories, then 
serve the pages without processing them?

Thanks,
Teren

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


Re: [users@httpd] Server Side Includes for certain files

Posted by Nick Kew <ni...@webthing.com>.
On 22 Oct 2009, at 19:21, Teren Teh wrote:

> Hi there,
>
> I'm wondering if there's anyway possible to selective choose which  
> files to be processed for SSI?

Check the documentation on scoping your directives.
A <FilesMatch> or <LocationMatch> would be typical
ways to do it.

-- 
Nick Kew

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