×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

SSI (Server Side Includes)

Why can it be a bad idea to set-up Apache to parse all html files for SSI? by Wullie
Posted: 21 May 02 (Edited 23 Jun 02)

This explains why it can be a bad idea to set-up Apache to parse all html files for SSI.

When you set up Apache with the default configuration and enable SSI, the server parses only .shtml files for SSI. This is for a very good reason and you should be aware of this if you decide to change it.

When a .shtml file is called, Apache looks for and parses any SSI directives that are contained within. If you alter the httpd.conf and change this so that Apache should also parse .html files then you may run into serious problems.

Parsing a file for SSI uses more system resources than calling a html file normally and this keeps the server usage to a minimum.

When you change this, every .html and .shtml file called by a browser results in Apache having to check the file for any SSI directives, regardless of whether the file may contain them or not.

The problem with this is that on a server that receives a decent amount of hits, the server usage goes way up and you are wasting resources for no reason. On a small server with a few hits a day you may not notice any difference but as you go up the scale, the server usage gets greater and the time taken for Apache to deliver the pages to the browser gets greater.

If your host enabled this and you personally did not do it, you stuck with .shtml files, you may think that you will not be affected. You could not be more wrong.

Even though no .html pages on your site contain SSI, the pages are still parsed for it, as they are on the rest of the server. This process affects the whole server and not just the webmasters that use this.

If you do decide to do this for a site, be sensible and enable it on a per domain basis so as not to run the risk of your server collapsing at high traffic times.

You can enable this either in your httpd.conf or in a htaccess file contained within the domain in question.

Hope this helps

Wullie

sales@freshlookdesign.co.uk
www.freshlookdesign.co.uk

Back to Linux (server) FAQ Index
Back to Linux (server) Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close