Hei all
i have problem for my SSL setup, when i put SSL Engine to on my Apache will not start up, if i remove it, its work fine.
i can't finde the Apache log, so i can find out of whats happen here,
can sommen maby tell me the problem or link to the defualt log-path for Apache?
here is my vhost config file.
<VirtualHost *:443>
# SSLEngine On
SSLProtocol all
SSLCertificateFile "/etc/pki/tls/schemecloud.co.uk.csr"
SSLCertificateKeyFile "/etc/pki/tls/schemecloud.co.uk.key"
SSLCACertificateFile "/etc/pki/tls/rapidssl.crt"
ErrorLog "/var/www/error_ssl_log"
<Directory /var/www/html>
AllowOverride All
</Directory>
DocumentRoot /var/www/html/
ServerName schemecloud.co.uk
</VirtualHost>
You are listing a .csr file for SSLCertificateFile. .csr files usually contain the Certificate Signing Request, which is not your certificate. You likely have a .crt file which you need to put in that directive.
The Apache log path on my Centos installations is "/var/log/httpd/"; however, it looks like you may be changing that path with the ErrorLog parameter.
For the configuration you've given, I suspect you may be using the wrong file for the SSLCertificateFile parameter; ".csr" usually means certificate signing request, and the certificate files that parameter requires are commonly named ".crt".
Also, you may find this tutorial on getting Apache set up to use SSL helpful.
You are overriding the default ErrorLog path in your configuration at this line:
I recommend deleting that line, and just using the default ErrorLog instead. That way, all errors will be logged in the same spot. It's a single daemon, and it really only needs one error log file, in most cases. In addition,
/var/www/
is typically a directory to hold the web content (html files, images, error pages, icons, cgi scripts, etc.) You probably don't want to store any error logs in there.To find the default ErrorLog location, you will need to understand how Apache configuration works.
First search for 'ErrorLog' in your main httpd.conf. On a CentOS 5 box, you will see a line like this:
According to the documentation for the ErrorLog Directive:
On a CentOS 5 box, the ServerRoot is typically /etc/httpd
This means that your default error log is at
/etc/httpd/logs/
, which happens to be a symlink to/var/log/httpd
: