Or search support forum

What's Global Moxie?

Global Moxie specializes in mobile design strategy and user experience for a multiscreen world. We offer consulting services, training, and product-invention workshops to help creative organizations build tapworthy mobile apps and effective websites. We're based in Brooklyn, NY. Learn more.

On Shelves

Books by Josh Clark

Tapworthy: Designing Great iPhone Apps

Best iPhone Apps: The Guide for Discriminating Downloaders

iWork ’09: The Mising Manual


Enter your e-mail to receive occasional updates:

How do I enable server-side includes (SSIs) on my site?

Important: Sales, service, and support of Big Medium are no longer offered. More details.


How do I enable server-side includes on my site?


One of Big Medium's system requirements is that your server have server-side includes (SSIs) enabled. This server configuration is a common feature that is often already enabled on hosted web accounts. If SSIs are not enabled, however, the often has to be switched on by a server administrator.

If you run Big Medium on a hosted web account, check with your hosting company for help with enabling server side includes. (You can also try the "Edit .htaccess (Apache only)" method described below).

Here are three ways to enable SSIs:

Option one: Edit Apache's httpd.conf file

If you're running an Apache server and have access to its main configuration file, named httpd.conf, you can enable SSIs by adjusting some settings in that main file. The location of httpd.conf varies from server to server, but here a couple of common locations.

On Linux:


On Mac OSX Leopard and Snow Leopard:


On Mac OSX Tiger:


Find these lines:

#AddType text/html .shtml
#AddHandler server-parsed .shtml

...and, if they are not already "uncommented," uncomment the two lines that start with AddType and AddHandler by removing the "#" from the start of those lines like so:

AddType text/html .shtml
AddHandler server-parsed .shtml

In more recent vintages of Apache, the lines to uncomment look like so:

#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml

Also, in the virtual server entry for the domain, be sure that you have an Options entry that includes the IncludesNoExec option. The Options entry can include other entries, too, but should at least include IncludesNoExec. Something like this:

Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec

Important. I strongly recommend that you do not use the Includes option but instead use IncludesNoExec as shown above.

And finally, be sure that the DirectoryIndex setting includes index.shtml. The DirectoryIndex line can include other options, too, but it should at least include index.shtml. For example:

<IfModule mod_dir.c>
    DirectoryIndex index.shtml index.html

After making those changes, restart Apache, and all should be well.

Option two: Edit .htaccess (Apache only)

If you're running an Apache server that allows server configuration via .htaccess files in your web directory, you can enable SSIs by adding a file named .htaccess to your site's homepage directory (or add to an existing .htaccess file if you already have one). The settings to include in this file are:

AddType text/html .shtml
AddHandler server-parsed .shtml
DirectoryIndex index.shtml index.html index.htm index.php
Options +IncludesNoExec -ExecCGI

Server-side includes are immediately enabled once those settings have been added to the .htaccess file in your web directory.

Option three: Enable SSIs on Windows IIS

If SSIs are not already enabled on your Windows server, only a server administrator can turn them on. To do this:

  1. In the IIS Manager, go to "Web Service Extensions" and set server-side includes to "Allowed."
  2. In IIS Manager, expand the local computer, right-click the "Web Sites" folder (for all sites) or right-click a specific Web site, and click "Properties."
  3. In the "Documents" tab, make sure that index.shtml is included in the default content page list.
Download Big Medium
Try it free for 30 days, or buy to unlock.

Brains for Sale

“Josh Clark, do you sell your brain so I can constantly tap into it for wisdom? Oh wait, you wrote a book.
—Tim Van Damme, designer

“Whenever I have a question about iPhone design patterns, Tapworthy has an answer, even for little details. The best book you can buy for iPhone design.”
—Catriona Cornett,

“Great speaker. Josh Clark could make a talk about cleaning a litter box interesting.”
—Aaron Griffith, iPhone developer

More praise for Tapworthy