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