- 时间:2020-09-10 01:22 编辑: 来源: 阅读:
- 扫一扫,手机访问
摘要:Apache无法自动跳转却显示目录的解决方法
Apache无法自动跳转却显示目录这是因为Apache服务器下conf/httpd.conf没有配置好,其默认是不跳转,直接显示目录
首先,我们需要禁止Apache直接显示目录。
方法在搜索Options Indexes FollowSymLinks,将其该为Options FollowSymLinks
[img]http://files.jb51.net/file_images/article/201607/20167190136387.jpg?2016619359[/img]
其实,解决Apache无法自动跳转的问题,这是因为Apache本来只是一个http服务器,不会自动跳转到index.php页面。需要定位[b]<IfModule dir_module>[/b]这一项,将DirectoryIndex index.html改成DirectoryIndex index.html index.php即可。
[img]http://files.jb51.net/file_images/article/201607/20167190455610.jpg?201661954[/img]
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持编程素材网。