beautypg.com

Setting up persistent connections for web service, Limiting simultaneous connections for web service – Apple Mac OS X Server (Administrator’s Guide) User Manual

Page 344

background image

344

Chapter 8

5

Type the file suffix that describes the type of data in files handled by this mapping.

6

Choose a Web server response from the Response pop-up menu. If you choose “Return file
as MIME type,” enter the MIME type you want to return.

7

Click Save.

If you choose a response that is a Common Gateway Interface (CGI) script, make sure you
have enabled CGI execution for your site in the Options pane of the site settings window.

Setting Up Persistent Connections for Web Service

You can set up Web service to respond to multiple requests from a client computer without
closing the connection each time. Repeatedly opening and closing connections isn’t very
efficient and decreases performance.

To set up persistent connections:

1

In Server Settings, click the Internet tab.

2

Click Web and choose Configure Web Service.

3

In the General pane, enter a number in the Maximum Persistent Connections field.

If you set the number to zero, there is no limit to the number of requests allowed per
connection. However, the default setting of 500 provides better performance.

4

Enter a number in the Connection Timeout field if you want to specify the amount of time
that can pass between requests before the session is disconnected by the Web server.

5

Click Save, then restart Web service.

Limiting Simultaneous Connections for Web Service

You can limit the number of simultaneous connections to your Web server. When the
maximum number of connections is reached, new requests receive a message that the server
is busy.

To set the maximum number of connections to your Web server:

1

In Server Settings, click the Internet tab.

2

Click Web and choose Configure Web Service.

3

In the General pane, enter a number in the Maximum Simultaneous Requests field.

The default maximum is 500, but you can set the number as high or as low as you want to,
taking into consideration the desired performance of your server.

4

Click Save, then restart Web service.

This manual is related to the following products: