Web Administration: Web Resources
Web Templates: Installation
The University of Florida templates use server-side includes to incorporate repetitive content, which can be used on most Web servers.
Follow these instructions to start using the templates:
- Download the zip file (e.g.
01a.zip) containing the template you like. - Unpack the zip file.
- Using your FTP or SFTP client, upload the directory (e.g.
01a) to your server. - Check the permissions of the newly uploaded files and directories.
- In your Web browser, go to e.g.
http://your.server.ufl.edu/01a/. -
Check that the page includes the following:
- A header, similar to the one at the top of this page
- A footer, similar to the one at the bottom of this page
- In the footer, a last modified date (for AUP compliance)
If everything checks out, start adding your content to the templates! Otherwise, you probably have an issue with server-side includes. Please contact your system administrator or read below for Apache- and IIS-specific instructions.
Apache
If your server runs Linux, Mac OS X, BSD, or some other UNIX-like operating system, there's a good chance your Web server is Apache. Most Apache installations are configured to allow server-side includes, but you might want to check with your system administrator before getting started.
Our templates have the following server requirements:
mod_includemust be installed and enabled.Options +Includesmust be specified in your site's configuration - either in your server'shttpd.confor in a.htaccessfile.-
At least one handler for
server-parsedcontent must be specified. For example:AddType text/html .html
AddHandler server-parsed .html
If you wish to differentiate between pages with and without server-side includes, you can modify the last requirement and rename the templates to use the .shtml extension.
For more information, please see the Apache tutorial on server-side includes.
IIS
If your server runs Windows, it probably runs Microsoft's IIS. Due to differences in how IIS interprets server-side include directives, you will need to modify the templates slightly. (The following instructions were tested on Windows XP running IIS 5.1.)
- In your IIS configuration, open the properties for your Web site. Under Documents, make sure Enable Default Document is on. Then add
index.stmas a default document. - Open the zip file containing your template.
- Rename all
.htmlfiles to use.stmextension instead. For example, renameindex.htmltoindex.stm. Repeat for all.htmlfiles in theincludesdirectory. - Open
index.stmand change all instances ofinclude virtualtoinclude file. - Open
footer.stmin theincludesdirectory and change all instances ofinclude virtualtoinclude file. - In the same directory, open
lastModified.stmand change:
config timefmt="%b %e, %Y"toconfig timefmt="%b %d, %Y"
flastmod virtual="${DOCUMENT_URI}"toflastmod file="../index.stm"
Unfortunately Web Administration cannot support the templates on IIS. For further assistance, please talk to your system administrator or ask on the UF Web Managers list.
For more information, please see the Microsoft support article on server-side includes with IIS.