Linux 配置Apache web服务器以执行SSL身份验证

Linux 配置Apache web服务器以执行SSL身份验证,linux,apache,security,ssl,xampp,Linux,Apache,Security,Ssl,Xampp,我正在尝试在ApacheWeb服务器中执行SSL身份验证,在Linux中使用XAMPP。在我这样配置httpd.conf之后,Apache服务器无法启动。有人能帮我修一下吗?我的配置有什么问题 Alias /bitnami/ "/opt/lampp/apache2/htdocs/" Alias /bitnami "/opt/lampp/apache2/htdocs" <Directory "/opt/lampp/apache2/htdocs"> Options Indexe

我正在尝试在ApacheWeb服务器中执行SSL身份验证,在Linux中使用XAMPP。在我这样配置httpd.conf之后,Apache服务器无法启动。有人能帮我修一下吗?我的配置有什么问题

Alias /bitnami/ "/opt/lampp/apache2/htdocs/"
Alias /bitnami "/opt/lampp/apache2/htdocs"

<Directory "/opt/lampp/apache2/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

Listen 443

<VirtualHost 127.0.0.1:443>
    DocumentRoot "/opt/lampp/htdocs"
    ServerName localhost.localdomain
    SSLEngine on
    SSLCertificateFile "/home/lahiru/Desktop/ucsc/security/ssl/server.cer"
    SSLCertificateKeyFile "/home/lahiru/Desktop/ucsc/security/ssl/server.key"
    SSLVerifyClient require
    SSLVerifyDepth 10
    SSLCACertificateFile "/home/lahiru/Desktop/ucsc/security/ssl/ca.cer"
</VirtualHost>

这里是Bitnami开发者

在XAMPP中,SSL配置位于
/opt/lampp/etc/extras/httpd SSL.conf
文件中,其中端口443中已经配置了默认虚拟主机,您正在尝试再次绑定同一端口

请改为尝试修改此文件。您可以使用端口443运行命令
sudonetstat-vnpa | grep443

“Apache服务器无法启动”是什么意思?使用
/opt/lampp/ctlscript.sh
脚本重新启动Apache服务器并没有在我这方面产生任何错误消息,但是
错误日志告诉我与您提到的相同

问候,


Gonzalo

如果启动失败,可能是记录了一些错误,这可能有助于识别问题。你的Apache错误日志中有什么内容吗?是的,我编辑了这个问题。非常感谢。
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:443
[Sun Jun 21 07:42:47.000754 2015] [ssl:warn] [pid 1863] AH01909: localhost.localdomain:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jun 21 07:42:47.001082 2015] [ssl:warn] [pid 1863] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Jun 21 07:42:47.001101 2015] [ssl:warn] [pid 1863] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jun 21 07:42:47.001183 2015] [suexec:notice] [pid 1863] AH01232: suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)