[英]Configure Apache web server to perform SSL authentication
I'm trying to perform SSL authentication in apache web server, using XAMPP in Linux. 我正在尝试在Linux中使用XAMPP在apache网络服务器中执行SSL身份验证。 After I configure httpd.conf like this, Apache server is failing to start.
在像这样配置httpd.conf之后,Apache服务器无法启动。 Can some one help me to fix this ?
有人可以帮我解决这个问题吗? What is wrong with my configuration ?
我的配置有什么问题?
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>
And the Apache error log says, 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)
Bitnami developer here, Bitnami开发人员在这里,
In XAMPP the SSL configuration is located at /opt/lampp/etc/extras/httpd-ssl.conf
file, where there is a default VirtualHost already configured in port 443, and you are trying to bind again the same port. 在XAMPP中,SSL配置位于
/opt/lampp/etc/extras/httpd-ssl.conf
文件中,该端口中已经配置了默认的VirtualHost,并且您尝试再次绑定同一端口。
Please, try to modify this file instead. 请尝试改为修改此文件。 You can check if there is any other process using port 443 running command
sudo netstat -vnpa | grep 443
您可以使用运行命令
sudo netstat -vnpa | grep 443
端口443检查是否还有其他进程sudo netstat -vnpa | grep 443
sudo netstat -vnpa | grep 443
What do you mean with "Apache server is failing to start"? “ Apache服务器无法启动”是什么意思? Using the
/opt/lampp/ctlscript.sh
script to restart Apache server didn't produce any error message on my side but the error_log
told me the same that you mentioned. 使用
/opt/lampp/ctlscript.sh
脚本重新启动Apache服务器并不会在我这边产生任何错误消息,但是error_log
告诉我的内容与您提到的相同。
Regards, 问候,
Gonzalo 贡扎洛
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.