您现于de位置乃:亚博 > 其他

亚博 2019-06-05 其他 297

阿里云SSL证书安装图解教程

阿里云控制台


apache配置

<VirtualHost *:80>
  ServerAdmin admin@example.com
  DocumentRoot "/data/wwwroot/www.appryan.com/public"
  ServerName www.appryan.com
  ServerAlias appryan.com
  ErrorLog "/data/wwwlogs/www.appryan.com_error_apache.log"
  CustomLog "/data/wwwlogs/www.appryan.com_apache.log" common
  <Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
    Order allow,deny
    Deny from all
  </Files>
  <FilesMatch \.app$>
    SetHandler "proxy:unix:/dev/shm/app-cgi.sock|fcgi://localhost"
  </FilesMatch>
<Directory "/data/wwwroot/www.appryan.com/public">
  SetOutputFilter DEFLATE
  Options FollowSymLinks ExecCGI
  Require all granted
  AllowOverride All
  Order allow,deny
  Allow from all
  DirectoryIndex index.html index.app
</Directory>
</VirtualHost>
<VirtualHost *:443>
  ServerAdmin admin@example.com
  DocumentRoot "/data/wwwroot/www.appryan.com/public"
  ServerName www.appryan.com
  ServerAlias appryan.com
  SSLEngine on
  SSLCertificateFile "/usr/local/apache/conf/ssl/www.appryan.com.crt"
  SSLCertificateKeyFile "/usr/local/apache/conf/ssl/www.appryan.com.key"
  SSLCertificateChainFile "/usr/local/apache/conf/ssl/www.appryan.com_chain.crt"
  ErrorLog "/data/wwwlogs/www.appryan.com_error_apache.log"
  CustomLog "/data/wwwlogs/www.appryan.com_apache.log" common
  <Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
    Order allow,deny
    Deny from all
  </Files>
  <FilesMatch \.app$>
    SetHandler "proxy:unix:/dev/shm/app-cgi.sock|fcgi://localhost"
  </FilesMatch>
<Directory "/data/wwwroot/www.appryan.com/public">
  SetOutputFilter DEFLATE
  Options FollowSymLinks ExecCGI
  Require all granted
  AllowOverride All
  Order allow,deny
  Allow from all
  DirectoryIndex index.html index.app
</Directory>
</VirtualHost>


评论