alleysakura 发表于 2015-7-12 14:33:01

军哥,lamp下的ssl证书配置

Apache版本为2.4.10,在vhost下建立了与alleysakura.com.ssl.conf的文件:下面为代码
<VirtualHost *:443>
DocumentRoot "/home/wwwroot/alleysakura.com"
ServerName alleysakura.com
ServerAlias alleysakura.com www.alleysakura.com
SSLEngine on
SSLCertificateFile "/usr/local/apache/conf/ssl/server.crt"
SSLCertificateKeyFile "/usr/local/apache/conf/ssl/server.key"
SSLCertificateChainFile "/usr/local/apache/conf/ssl/server.ca-bundle"


php_admin_value open_basedir "/home/wwwroot/alleysakura.com:/tmp:/var/tmp/:/proc/"
<IfModule mod_deflate.c>
DeflateCompressionLevel 7
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
AddOutputFilter DEFLATE css js html htm gif jpg png bmp php
</IfModule>
</VirtualHost>
<Directory "/home/wwwroot/alleysakura.com">
    Options FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>



其余没有任何改动,httpd.conf未进行任何改动,Apache重启也没有出现报错
80端口可以正常访问,加了https后就无法访问,有关iptables的命令都用不了
怎么办啊,军哥

licess 发表于 2015-7-13 10:50:43

你如果要apache开ssl的话还得在httpd.conf 里加上listen 443
iptables如果开了,也要加上443端口的允许规则
页: [1]
查看完整版本: 军哥,lamp下的ssl证书配置