apache站点配置

<VirtualHost *:80>
    ServerAdmin webmaster@example.com
    DocumentRoot "/www/wwwroot/bkb.xxx.cn/project_name/backend/web"
    ServerName c458d800.bkb.xxxx.cn
    ServerAlias bkb.xxx.cn
    errorDocument 404 /404.html
    ErrorLog "/www/wwwlogs/bkb.xxx.cn-error_log"
    CustomLog "/www/wwwlogs/bkb.xxx.cn-access_log" combined

    #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-70.sock|fcgi://localhost"
    </FilesMatch>

    #PATH
    <Directory "/www/wwwroot/bkb.xxx.cn/project_name/backend/web">
        SetOutputFilter DEFLATE
        Options FollowSymLinks
        AllowOverride All
        Require all granted
        DirectoryIndex index.php index.html index.htm default.php default.html default.htm
    </Directory>
</VirtualHost>

猜你喜欢

转载自blog.csdn.net/qq_40393605/article/details/80356532
今日推荐