美文网首页
Httpd配置CA证书

Httpd配置CA证书

作者: jiangjh | 来源:发表于2017-11-30 14:33 被阅读0次

    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>
    

    相关文章

      网友评论

          本文标题:Httpd配置CA证书

          本文链接:https://www.haomeiwen.com/subject/geyvbxtx.html