Help!

Or search support forum

What's Global Moxie?

Global Moxie is the hypertext laboratory of Josh Clark, a designer, developer, and author who offers workshops and consulting for iPhone app design. He’s also creator of Big Medium, a web content management system. Josh spins words and code from multimedia studios in Providence, RI, and Paris, France.

What's Big Medium?

Big Medium is flexible, easy-to-use server software for creating and editing websites directly from your browser. Check out the features or download now.

On Shelves

Books by Josh Clark

Tap Happy: Designing Great iPhone Apps

Best iPhone Apps: The Guide for Discriminating Downloaders

iWork ’09: The Mising Manual

Moxiemail

Enter your e-mail to receive occasional updates:

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

Question

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

Answer

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:

 /etc/httpd/conf/httpd.conf

On Mac OSX Leopard and Snow Leopard:

/etc/apache2/httpd.conf

On Mac OSX Tiger:

/etc/httpd/httpd.conf

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

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.

Beautiful

"Beautiful interface. Installed with absolutely no problem. I AM IMPRESSED."
—Tom Marks

"This CMS has proven to be great and adaptable to the designer's vision, making my life easier."
—Scott Jordison

"Big Medium is everything I hoped for and more, and we're receiving a lot of compliments on the site's functionality. Moreso, I'd like to thank you for your exemplary customer service. You truly made me feel that you had a personal stake in our implementation, and gave me the confidence that when we went live, everything would be perfect. If only every tech-related experience was like this one."
—Andrew McKay

More praise for Big Medium