To list a group of settings:

You can list a group of settings that have part of their names in common by typing only as much of the name as you want, stopping at a colon (:), and typing an asterisk (*) as a wildcard for the remaining parts of the name. For example:

$ sudo serveradmin settings web:IFModule:_array_id:mod_alias.c:*

Changing Web Settings

You can use serveradmin to modify your server’s web service configuration. However, if you want to work with the web service from the command line, you’ll probably find it more straightforward to work directly with the underlying Apache web server.

serveradmin and Apache Settings

The parameters are written differently in the Apache configuration file than they are in serveradmin. For example, this block of Apache configuration parameters:

<IfModule mod_macbinary_apple.c> MacBinary On

MacBinaryBlock html shtml perl pl cgi jsp php phps asp scpt MacBinaryBlock htaccess

</IfModule>

appears as this block of configuration paramters in serveradmin:

web:IfModule:_array_id:mod_macbinary_apple.c:MacBinary = yes

web:IfModule:_array_id:mod_macbinary_apple.c:MacBinaryBlock:_array_index:0 = "html shtml perl pl cgi jsp php phps asp scpt"

web:IfModule:_array_id:mod_macbinary_apple.c:MacBinaryBlock:_array_index:1 = "htaccess".

Changing Settings Using serveradmin

You can change web service settings using the serveradmin tool.

To change a setting:

$ sudo serveradmin settings web:setting = value

Parameter

Description

setting

A Web service setting. To see a list of available settings, enter

 

$ sudo serveradmin settings web.

 

 

value

An appropriate value for the setting.

 

 

To change several settings:

$ sudo serveradmin settings

web:setting = value

web:setting = value

web:setting = value

[...]

Control-D

Chapter 13 Working with Web Technologies

209

Page 209
Image 209
Apple Mac OS X Server manual Changing Web Settings, Serveradmin and Apache Settings, Changing Settings Using serveradmin