The Web Development Blog has moved to http://www.heidicool.com/blog/. Please visit me there to read the latest entries and to update your bookmarks and RSS feeds.
April 04, 2005
Using ssi files with secured pages
Many of you are using Server Side Includes files for menus, footers, and other elements of your websites that are used on multiple pages. Learn more about ssi.
SSI files are a great time-saver when it comes to updating your site, but what happens when you want to use them in a secured environment, i.e. with a file or directory that you've secured for viewing only by authenticated users*? If you've tried this, you've noticed that your files don't work properly, your stylesheet doesn't appear, and everything looks horribly wrong. What you need for these to work properly is to secure a copy of your ssi files.
- Create a new directory (on the same level as your ssi directory) called ssi-sec
- Open your text-editor of choice and create a file named: .auroraaccess
- Within that file, type: secure on
- Save and exit the file and upload it to your ssi-sec directory. While this file should be saved as plain text, make sure your editor doesn't append a .txt extension to the end.
- Copy all of the .ssi files in your regular ssi directory to your ssi-sec directory and upload them to the server.
- Open the html file(s) that you are securing and change your include references from ssi to ssi-sec. For example:
<!--#include virtual="../ssi/file.ssi" --> would change to <!--#include virtual="../ssi-sec/file.ssi" -->
- View your page, and just remember to update .ssi files in both folders when making future edits.
Kudos to Heidi Emick & John Sully for working out and sharing this procedure when we launched the templates.
*For more information on securing files and directories on the Aurora server visit http://www.cwru.edu:8000/apas/apas.html and login with your account ID and password. (NOT your Case ID and password) and follow the instructions for restricting a file or directory. Those maintaining websites on other servers, should consult with their server administrator for authentication instructions.
TrackbacksTrackback URL for this entry is: Using ssi files with secured pages
Office of Marketing and Communications