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>
评论前必须登录!
注册