美文网首页
mac 下 apache2.14 显示目录列表

mac 下 apache2.14 显示目录列表

作者: 饼饼_佳 | 来源:发表于2017-04-07 15:51 被阅读0次

    1.开启Apache

    sudo apachectl start
    

    2.配置Apache

    • 打开 Apche 的配置文件:/etc/apache2/httpd.conf
    • 找到 Options FollowSymLinks Multiviews
    • 改成 Options FollowSymLinks Multiviews Indexes
    • 保存

    3.重启Apache

    sudo apachectl restart 
    

    4.使用

    • Apache 的根目录为 /Library/WebServer/Documents/
    • 如果 打开 http://localhost/ 显示 it work ,就把目录下的 index.html.en 删除或重命名为 非 .html 后缀
    • 以后把文件上传到这个文件夹就可以正常使用了

    相关文章

      网友评论

          本文标题:mac 下 apache2.14 显示目录列表

          本文链接:https://www.haomeiwen.com/subject/irmhattx.html