apache项目报 client denied by server configuration
- 环境 : lamp
- 虚拟主机是使用
oneinstack
创建的 - 报错如下:
- 错误日志如下:
- 网上说出现
client denied by server configuration
是因为Apache2.2
和2.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>
- 求各位大哥指点下
推荐文章: