apache httpd配置ssl证书部分记录
证书生成相关请参考此链接
<VirtualHost *:443>
ServerAdmin admin@domain.com
Servername myapp.domian.com
DocumentRoot "/var/www/php"
#ErrorLog /var/www/logs/error_log
#TransferLog /var/www/logs/access_log
# 配置ssl证书部分
SSLEngine On
SSLProxyEngine On
SSLCertificateFile /var/www/certs/myapp.cer
SSLCertificateKeyFile /var/www/certs/server.key
SSLCACertificateFile /var/www/certs/ca.cer
<Directory />
DirectoryIndex index.php
AllowOverride all
order allow,deny
allow from all
</Directory>
Alias /download /var/www/files
<Directory /var/www/files>
Options FollowSymLinks
AllowOverride all
Order Deny,Allow
Allow from all
Require all granted
</Directory>
</VirtualHost>
网友评论