Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Server Side Includes for certain files

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


tteh at oanda

Oct 22, 2009, 11:21 AM

Post #1 of 2 (217 views)
Permalink
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 [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


nick at webthing

Oct 22, 2009, 4:08 PM

Post #2 of 2 (209 views)
Permalink
Re: Server Side Includes for certain files [In reply to]

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 [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.