<VirtualHost *:80>
ServerAdmin webmaster@example.com
DocumentRoot "/www/wwwroot/xr.chuangzhanseo.com"
ServerName 464b8320.xr.chuangzhanseo.com
ServerAlias xr.chuangzhanseo.com
#errorDocument 404 /404.html
ErrorLog "/www/wwwlogs/xr.chuangzhanseo.com-error_log"
CustomLog "/www/wwwlogs/xr.chuangzhanseo.com-access_log" combined
#BEGIN_DENY_访问限制
<Directory ~ "/.*\.(php|ppt|txt)$">
Order allow,deny
Deny from all
</Directory>
#END_DENY_访问限制
#DENY FILES
<Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
Order allow,deny
Deny from all
</Files>
#PHP
<FilesMatch \.php$>
SetHandler "proxy:unix:/tmp/php-cgi-73.sock|fcgi://localhost"
</FilesMatch>
#PATH
<Directory "/www/wwwroot/xr.chuangzhanseo.com">
SetOutputFilter DEFLATE
Options FollowSymLinks
AllowOverride All
Require all granted
DirectoryIndex index.php index.html index.htm default.php default.html default.htm
</Directory>
</VirtualHost> |