apache项目报 client denied by server configuration

  • 环境 : lamp
  • 虚拟主机是使用 oneinstack 创建的
  • 报错如下:

apache项目报 client denied by server configuration

  • 错误日志如下:

apache项目报 client denied by server configuration


  • 网上说出现 client denied by server configuration 是因为 Apache2.22.4 版本不一样, 导致了一些配置不一样, 但是按照网上的修改了之后还不行
  • Apache配置文件如下:
    <VirtualHost *:80>
      ServerAdmin admin@example.com
      DocumentRoot "/data/wwwroot/www.crm1.test/publc"
      ServerName www.crm1.test
      ServerAlias crm1.test
      ErrorLog "/data/wwwlogs/www.crm1.test_error_apache.log"
      CustomLog "/data/wwwlogs/www.crm1.test_apache.log" common
      <Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
          Order allow,deny
          Deny from all
      </Files>
      <FilesMatch \.php$>
          SetHandler "proxy/dev/shm/php-cgi.sock|fcgi://localhost"
      </FilesMatch>
      <Directory "/data/wwwroot/www.crm1.test/public">
          Options -Indexes +FollowSymlinks
          AllowOverride All
          Require all granted
          DirectoryIndex index.html index.php
      </Directory>
    </VirtualHost>

  • 求各位大哥指点下
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 1

看你的配置怎么这么复杂?以下是我在 apache2.4.6 下的配置

<VirtualHost *:80>
        ServerName www.xxx.cn
        ServerAlias xxx.cn

        DocumentRoot "/data/wwwroot/laravel/public"
        ErrorLog "/var/log/httpd/laravel_error_apache.log"
        CustomLog "/var/log/httpd/laravel_apache.log" common
        <Directory "/data/wwwroot/laravel/public">
                Options Indexes FollowSymlinks
                AllowOverride All
                Require all granted
        </Directory>
</VirtualHost>
4年前 评论
qingshui (楼主) 4年前

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!