Chapter 3 Creating and Managing Websites 51
Monitoring Website Activity
Use website logs to monitor your website activity and server events. You can congure
logs to record events as messages for specic website activity. Website logs are used to
track who accesses a website and what errors occur on a website. This information is
useful when troubleshooting problems or monitoring malicious activity.
For more information on setting up logs, see “Enabling Access and Error Logs for a
Website” on page 40.
To view website logs:
1 Open Server Admin and connect to the server.
2 Click the triangle at the left of the server.
The list of services appears.
3 From the expanded Servers list, select Web.
4 Click Logs, then select the log for your website in the list.
The log messages display below the log list.
Switch between logs by selecting them in the list.
5 Search the contents of a log by entering a search term in the Filter eld located in the
lower right corner below the log.
Using a Passphrase with SSL Certicates
If you manage SSL certicates using Server Admin and you use a passphrase for your
certicates, Server Admin ensures that the passphrase is stored in the system keychain.
When a website is congured to use the certicate and that web server is started, the
getsslpassphrase(8) utility extracts the passphrase from the system keychain and passes
it to the web server, as long as the certicate name matches the virtual host name.
If you do not want to rely on this mechanism, you can have the Apache web server
prompt you for the passphrase when you start or restart it. Use the serveradmin
command-line tool to congure this.
To congure Apache to prompt you for a passphrase when it starts:
1 Open Terminal and enter the following command.
$ sudo serveradmin settings web:IfModule:_array_id:mod_ssl.c:SSL
PassPhraseDialog=builtin
2 Start Apache with the command:
$ sudo serveradmin start web
3 When prompted, enter the certicate passphrase.
Kommentare zu diesen Handbüchern