apache 2.4.29 编译安装后403

[root@test_c12 bin]# ./apachectl -v
Server version: Apache/2.4.29 (Unix)
Server built: Dec 19 2017 18:36:2

编译安装apache2.4.19,访问页面,403

网上搜了一些方法
修改了httpd-vhost.conf http.conf
最后还是无效

You don't have permission to access / on this server.

阅读 2.7k
2 个回答
#AddType下面追加    
AddType application/x-httpd-php .php




<Directory "your directory here">
   Order allow,deny
   Allow from all #这句话
   # New directive needed in Apache 2.4.3: 
   Require all granted #加上这句话
</Directory>

修改文件没成功,把权限修改下.chmod 命令

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进