Apple Mac OS X Server Network Card User Manual


 
210 Chapter 13 Working with Web Technologies
Web serveradmin Commands
You can use the following commands with the serveradmin tool to manage web
service.
Listing Hosted Sites
You can use the serveradmin getSites command to display a list of the sites hosted by
the server, along with basic settings and status.
To list sites:
$ sudo serveradmin command web:command = getSites
You can also list the sites using Apache, with the following command:
$ httpd -S
Viewing Service Logs
You can use tail or any other file listing tool to view the contents of web service
access and error logs for each site hosted by the server.
To view the latest entries in a log:
$ tail
log-file
You can use the serveradmin getLogPaths command to see where the current error
and activity logs for each site are located.
To display the log paths:
$ sudo serveradmin command web:command = getLogPaths
Viewing Service Statistics
You can use the serveradmin getHistory command to display a log of periodic
samples of the number of requests, cache performance, and data throughput. Samples
are taken once each minute.
Command
(
web:command=) Description
getHistory View Web service statistics. See “Viewing Service Statistics” on
page 210.
getLogPaths Finding the access and error logs for each hosted site. See “Viewing
Service Logs” on this page.
getSites Listing existing sites. See “Listing Hosted Sites” on this page.