Setting access for webdav-enabled sites, Enabling a common gateway interface (cgi) script – Apple Mac OS X Server (version 10.2.3 or later) User Manual
Page 375

Web Service
375
Setting Access for WebDAV-Enabled Sites
You create realms to provide security for Web sites. Realms are locations within a site that
users can view or make changes to when WebDAV is enabled. When you define a realm, you
can assign browsing and authoring privileges to users for the realm.
To add users and groups to a realm:
1
In Server Settings, click the Internet tab.
2
Click Web and choose Configure Web Service, then click the Sites tab.
3
Select a site name and click Edit, then click the Access tab.
4
Select a realm and click Edit, or click Add to create a new realm.
The default name for a new realm is the name of the Web site.
5
Select the “Everyone” checkbox and choose “can Browse” from the pop-up menu.
6
Drag users and groups from the list of users and groups in Workgroup Manager to the realm
window.
7
Select Allow Authoring if you want a user or group to be able to author.
If you don’t select Everyone, you can fully restrict access and add only the users you want to
browse and author for this realm. When you select privileges for Everyone, you have these
options:
“Browse” allows everyone who can access this realm to see it. You can add additional users
and groups to the User or Group list to enable authoring for them.
“Browse and Author” allows everyone who has access to this realm to see and make changes
to it.
8
In the Realm window, click Save and restart Web Service.
Enabling a Common Gateway Interface (CGI) Script
Common Gateway Interface (CGI) scripts (or programs) send information back and forth
between your Web site and applications that provide different services for the site.
m If a CGI is to be used by only one site, install the CGI in the Documents folder for the site.
The CGI name must end with the suffix “.cgi.”
m If a CGI is to be used by all sites, install it in the /Library/WebServer/CGI-Executables
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
m Make sure the file permissions on the CGI allow it to be executed by the user named
“www.” Since the CGI typically isn’t owned by www, the file should be executable by
everyone.
LL0395.Book Page 375 Wednesday, November 20, 2002 11:44 AM