beautypg.com

Starting tomcat – Apple Mac OS X Server (Administrator’s Guide) User Manual

Page 347

background image

Web Service

347

3

In the General pane, select “Enable WebDAV support,” then click the Sites tab.

4

Select a Web site and click Edit, click the Options tab, then select Enable WebDAV.

5

Click the Access tab. Select a realm and click Edit, or click Add to create a new realm.

The realm is the part of the Web site users can access.

6

Type the name you want users to see when they log in.

The default realm name is the name of the Web site.

7

Type the path to the location in the Web site to which you want to limit access.

You can also click the Select button and browse for the folder you want to use.

If you are administering a remote server, file service must be running on the local machine to
use the Select button.

8

Click Save.

Starting Tomcat

Tomcat adds Java servlet and JavaServer Pages ( JSP) capabilities to Mac OS X Server. Java
servlets are Java-based applications that run on your server, in contrast to Java applets which
run on the user’s computer. JavaServer Pages allows you to embed Java servlets in your
HTML pages.

For more information on Tomcat see “Installing and Viewing Web Modules” on page 365.

You can set Tomcat to start automatically whenever the server starts up. This will ensure that
the Tomcat module starts up after a power failure or after the server shuts down for any reason.

Note: Tomcat is not started by a Startup Item, nor is it started directly by the watchdog
process. It is started and stopped by the Server Settings application in conjunction with the
serversettingsd process, which uses the /Library/Tomcat/bin/tomcatctl script.

To start Tomcat on server startup:

1

In Server Settings, click the Internet tab.

2

Click Web and choose Configure Web Service.

3

Click “Start Tomcat at system startup.”

4

Click Save, then restart the server.

To verify that Tomcat is running, use a Web browser to access port 9006 of your Web site by
entering the URL for your site followed by :9006 (see the URL below).

http://example.com:9006

If Tomcat is running, accessing port 9006 will display the default Tomcat home page.

This manual is related to the following products: