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>