Apache配置允许文件索引

这两天在看bootstrap的文档,所以在本地搭建了一个web server.
这里记下Apache的一个小配置:

LISTEN *:8000
<VirtualHost *:8000>
    Alias / "D:/Codes/BootstrapLearn/"
    Alias /bootstrap "D:/Codes/BootstrapLearn/bootstrap/"
    Alias /scripts "D:/Codes/BootstrapLearn/scripts/"

    <Directory "D:/Codes/BootstrapLearn">
        Options Indexes
        Require all granted
        Order Deny,Allow
        Deny from all
        Allow from 127.0.0.1
    </Directory>
</VirtualHost>

posted @ 2015-03-31 21:24  Mx.Hu  阅读(335)  评论(0编辑  收藏  举报