
52 Chapter 3 Managing Websites
Using a Passphrase With SSL Certificates
If you manage SSL certificates using the Server Admin application, and you use a
passphrase for your certificates, Server Admin ensures that the passphrase is stored in
the system keychain. When a website is configured to use the certificate 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 certificate name matches the
virtual host name.
If you would perfer not to rely on this mechanism, you can instead arrange for the
Apache web server to prompt you for the passphrase when you start or restart it. To do
so, enter the following from the command line:
sudo serveradmin settings web:IfModule:_array_id:mod_ssl.c:SSL
PassPhraseDialog=builtin
Note: With this method, you must use the command line rather than Server Admin to
start Apache, with the command:
sudo serveradmin start web
You will then be prompted for the certificate passphrase.
Setting Up the SSL Log for a Website
If you are using Secure Sockets Layer (SSL) on your web server, you can set up a file to
log SSL transactions and errors.
To set up an SSL log:
1 In Server Admin, click Web for the server you want.
2 Click Settings in the button bar.
3 In the Sites pane, double-click the site you want to edit.
4 In the Security pane, make sure Enable Secure Sockets Layer is checked, then enter the
pathname for the folder where you want to keep the SSL log in the SSL Log File field.
You can also use the Browse button to navigate to the folder.
5 Click Save.
Enabling PHP
PHP (PHP: Hypertext Preprocessor) is a scripting language embedded in HTML that is
used to create dynamic webpages. PHP provides functions similar to those of CGI
scripts, but supports a variety of database formats and can communicate across
networks via many different protocols. The PHP libraries are included in
Mac OS X Server, but are disabled by default.
See “Open Source Modules” on page 72 for more information on PHP.
Kommentare zu diesen Handbüchern