- 论坛徽章:
- 0
|
本帖最后由 Intranet 于 2010-07-01 11:17 编辑
有人根据这个文档配置成功过吗?
我两次配置都碰到同样的问题:
- mail# apachectl start
- Syntax error on line 30 of /usr/local/etc/apache22/Includes/extmail-ssl.conf:
- SSLCertificateFile: file '/usr/local/etc/apache22/certs/mycert.pem' does not exist or is empty
- mail#
复制代码
- mail# cat httpd-error.log
- [Wed Jun 30 17:29:54 2010] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
- [Wed Jun 30 17:29:54 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/local/sbin/suexec)
- [Wed Jun 30 17:29:55 2010] [notice] Digest: generating secret for digest authentication ...
- [Wed Jun 30 17:29:55 2010] [notice] Digest: done
- [Wed Jun 30 17:29:56 2010] [notice] Apache/2.2.15 (FreeBSD) mod_ssl/2.2.15 OpenSSL/1.0.0a DAV/2 configured -- resuming normal operations
- [Wed Jun 30 17:49:45 2010] [error] [client 192.168.1.18] File does not exist: /usr/local/www/extmail
- [Wed Jun 30 17:49:55 2010] [error] [client 192.168.1.18] File does not exist: /usr/local/www/extmail
- [Wed Jun 30 18:03:29 2010] [error] [client 192.168.1.18] Prototype mismatch: sub Encode::IMAPUTF7::decode ($$;$) vs none at /usr/local/www/extman/libs/Encode/IMAPUTF7.pm line 76.
- [Thu Jul 01 10:35:17 2010] [notice] SIGHUP received. Attempting to restart
- Syntax error on line 30 of /usr/local/etc/apache22/Includes/extmail-ssl.conf:
- SSLCertificateFile: file '/usr/local/etc/apache22/certs/mycert.pem' does not exist or is empty
- mail#
复制代码
- mail# cat /usr/local/etc/apache22/Includes/extmail-ssl.conf
- Listen 443
- AddType application/x-x509-ca-cert .crt
- AddType application/x-pkcs7-crl .crl
- SSLPassPhraseDialog builtin
- SSLSessionCache shmcb:/var/run/ssl_scache(512000)
- SSLSessionCacheTimeout 300
- SSLMutex file:/var/run/ssl_mutex
- <VirtualHost _default_:443>
- DocumentRoot "/usr/local/www/extmail/html"
- ServerName mail.gnulabs.net:443
- ScriptAlias /extmail/cgi /usr/local/www/extmail/cgi/
- Alias /extmail /usr/local/www/extmail/html/
- ScriptAlias /extman/cgi "/usr/local/www/extman/cgi/"
- Alias /extman "/usr/local/www/extman/html/"
- ServerAdmin [email]88096111@qq.com[/email]
- ErrorLog /var/log/httpd-error.log
- TransferLog /var/log/httpd-access.log
- SSLEngine on
- SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
- #SSLCertificateFile /usr/local/etc/apache22/server.crt
- #SSLCertificateKeyFile /usr/local/etc/apache22/server.key
- SSLCertificateFile /usr/local/etc/apache22/certs/mycert.pem
- SSLCertificateKeyFile /usr/local/etc/apache22/certs/mykey.pem
- <FilesMatch "\.(cgi|shtml|phtml|php)$">
- SSLOptions +StdEnvVars
- </FilesMatch>
- <Directory "/usr/local/www/apache22/cgi-bin">
- SSLOptions +StdEnvVars
- </Directory>
- BrowserMatch ".*MSIE.*" \
- nokeepalive ssl-unclean-shutdown \
- downgrade-1.0 force-response-1.0
- CustomLog /var/log/httpd-ssl_request.log \
- "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
- #SuexecUserGroup vmail vmail
- </VirtualHost>
- # //....,..HTTPS...........
- <Location "/extman/cgi">
- SetHandler cgi-script
- Options +ExecCGI
- # AllowOverride All
- </Location>
- <Directory "/usr/local/www">
- AllowOverride None
- Options None
- Order allow,deny
- Allow from all
- </Directory>
- mail#
复制代码
- mail# ls -l /usr/local/etc/apache22/certs
- total 4
- -rwxr-xr-x 1 root wheel 1058 Jun 30 17:51 cacert.pem
- -rw-r--r-- 1 root wheel 0 Jun 30 17:51 mycert.pem
- -r--r----- 1 root wheel 887 Jun 30 17:51 mykey.pem
- mail#
复制代码
|
|