User www
Group www
ServerName yourserver.yourdomain.here
Port 8088 ## pick a test port
Listen 8088 ## in 'IfDefine SSL' section
Listen 443 ## this is the standard secure port!
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
# your Hello.pm script for mod_perl testing:
SetHandler perl-script
PerlHandler Apache::Hello
SSLCertificateFile /apache/conf/server.crt
SSLCertificateKeyFile /apache/conf/server.key
# in this example I generate the key and crt files into /apache/conf
8.11 如果你現在還沒有一個服務器的關鍵字(keys)和認證(certficate),那么現在就生成它。
在這個例子中我假設openssl在你的路徑中,因為你已經安裝了它。如果沒有,你就把它加到路徑中。注意,我已經認定了我的關鍵字,如果你要做非常重要的事,你最好利用授權機制來分發這些關鍵字。
ROOT# cd /www/apache/conf
文章來源于領測軟件測試網 http://www.kjueaiud.com/