How to Enable
THE SERVER CONFIGURATION METHOD
This method instructs the server to parse any page with an extension of shtml for SSI directives. Therefore, if you want it to work, you have to name your page, page.shtml and not page.html! After making the changes, you must restart your server for them to go into effect.
THE DIRECTORY CONFIGURATION METHOD
Your server may not allow you to issue configuration directives from your directories. Check with your system administrator to see if your directories have what is called AllowOverride Options set. If not, kindly ask to have your sysadmin turn it on for you. (Kind, begging e-mail works best!)
To enable SSI in a given directory, either edit or create a file called .htaccess, and add the following line:
To enable this feature for your entire site, you only have to add this .htaccess information in your website's main directory.
THE XBitHack METHOD
Let's say you do not want to rename your pages to x.shtml from x.html because of blowing links, etc. Apache has a nice soution. If your server allows you to do it (see above begging information), the XbitHack can be a time saver. All you have to do is set the user's execute bit on to have the server parse the page. A what?
In unix, we have what are called file permissions. Normally, a page you own that is a web page would have permissions such as 644. This means that you can read and write to the file, and others can only read it. Nice security feature, huh?
Now, if we set the permission on the file to 744, which is read, write, and execute for user, and still read only for others, the server will know to parse the page.
In order to do this, you must add the following line to the .htaccess file:
Be Warned! This method does have potential hazards.
Another option is to turn on the XbitHack as follows:
This will instruct the server to send a Last-Modified header. There are problems with this. If you do not change your main document often, but do change the text that is copied in, the browser or proxy server will not know about the changes.
[ Prev | Next | Home | Random | List ]