https installation phpstudy

1, open phpstudy server, expansion of other options selected php_openssl,
2, modify the file httpd-conf ,, open httpd-conf configuration file
to find #LoadModule ssl_module modules / mod_ssl.so, if in front of the # removed
Include conf / vhosts. the conf
the Include the conf / vhostssl.conf
. 4, D: \ phpStudy \ PHPTutorial \ the Apache \ the conf \ vhosts.conf
<VirtualHost *: 80>
the DocumentRoot "D: \ phpStudy \ PHPTutorial \ * the WWW \ public"
ServerName www.12.com
ServerAlias 12.com
<Directory "D: \ phpStudy \ PHPTutorial \ the WWW *
\ public">
Options FollowSymLinks ExecCGI
AllowOverride All
the Order the allow, deny
the Allow from All
the Require All granted
</ Directory>
</ VirtualHost>

5,D:\phpStudy\PHPTutorial\Apache\conf\vhostssl.conf

Listen 443
<VirtualHost :443>
DocumentRoot "D:\phpStudy\PHPTutorial\WWW*\public"
ServerName www.
.com
ServerAlias 12.com
SSLEngine on
SSLProtocol TLSv1 TLSv1.1 TLSv1.2
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5

SSLCertificateFile "D:\phpStudy\PHPTutorial\Apache\conf\***\1634738_api.***.com_public.crt"
SSLCertificateKeyFile "D:\phpStudy\PHPTutorial\Apache\conf\***\1634738_api.***.com.key"
SSLCertificateChainFile "D:\phpStudy\PHPTutorial\Apache\conf\***\1634738_api.***.com_chain.crt"

<Directory “D:\phpStudy\PHPTutorial\WWW***\public”>

  Options +Indexes +FollowSymLinks +ExecCGI

  AllowOverride All

  Order allow,deny

  Allow from all

  Require all granted

< /Directory>

< /VirtualHost>

6 in D: \ phpStudy \ PHPTutorial \ Apache \ conf *** \ add the certificate

Published 58 original articles · won praise 0 · Views 2764

Guess you like

Origin blog.csdn.net/qq_30439399/article/details/103432690