upupw 配置ssl

SSL admin 337℃ 0评论

NameVirtualHost *:443

<VirtualHost *:443>
DocumentRoot “D:/www”
ServerName www.xxx.com
ServerAlias www.xxx.com
ServerAdmin admin@xxx.com

DirectoryIndex index.html index.htm index.php default.php app.php u.php
FcgidInitialEnv PHPRC “D:/UPUPW_ANK_W64/Modules/PHPX/PHP7X/php.ini”
ExpiresActive Off
BandwidthModule Off
ForceBandWidthModule Off

SSLEngine on

SSLCertificateFile “D:\UPUPW_ANK_W64\WebServer\Apache\xxx.com.crt”
SSLCertificateKeyFile “D:\UPUPW_ANK_W64\WebServer\Apache\xxx.com..key”

SSLCertificateChainFile “D:\UPUPW_ANK_W64\WebServer\Apache\ca.crt”

<FilesMatch “\.(cgi|shtml|phtml|php)$”>
SSLOptions +StdEnvVars
</FilesMatch>
<Directory “D:/www”>
Options FollowSymLinks ExecCGI
AllowOverride All
<RequireAll>
Require all granted
</RequireAll>

</Directory>
<LocationMatch “/(attachment|attachments|uploadfiles|avatar)/(.*).(php|phps|php5|php7|fcgi|jsp|jspx|asp|aspx|asa|asax|ascx|ashx|asmx|axd)$”>
AllowOverride none
Require all denied
</LocationMatch>
</VirtualHost>

转载请注明:主机优惠吧 » upupw 配置ssl

喜欢 (0)

您必须 登录 才能发表评论!