Specifications

Enabling a Common Gateway Interface (CGI) Script
Common Gateway Interface (CGI) scripts (or programs) send information between
your website and applications that provide dierent services for the site.
If a CGI script is to be used by only one site, install the script in the Documents folder
for the site. The script le name must end with the sux “.cgi.”
If a CGI script is to be used by all sites on the server, install it in the /Library/
WebServer/CGI-Executable folder. In this case, clients must include /cgi-bin/ in the URL
for the site (for example, http://www.example.com/cgi-bin/test.cgi).
Make sure the le permissions for the CGI script permit it to be executed by the user
www. Because the script typically isn’t owned by www, Everyone should be able to
execute it.
To enable a CGI for a website:
1 Open Server Admin and connect to the server.
2 Click the triangle at the left of the server.
The list of services appears.
3 From the expanded Servers list, select Web.
4 Click Sites, then select the website in the list.
5 In the Options pane, select CGI Execution.
6 Click Save.
Note: Disabling CGIs for a site does not disable CGIs in the CGI-Executables folder.
Enabling Server Side Includes (SSI)
Enabling Server Side Includes (SSI) permits a block of HTML code or other information
to be shared by dierent webpages on your site. SSIs can also function like CGIs and
carry out commands or scripts on the server.
To enable SSI in Server Admin:
1 Open Server Admin and connect to the server.
2 Click the triangle at the left of the server.
The list of services appears.
3 From the expanded Servers list, select Web.
4 In the Options pane, select Server Side Includes (SSI).
5 Click Save.
50 Chapter 3 Creating and Managing Websites