文件服务
文件服务
语法
file_server [<matcher>] [browse] {
fs <backend...>
root <path>
hide <files...>
index <filenames...>
browse [<template_file>] {
reveal_symlinks
}
precompressed [<formats...>]
status <status>
disable_canonical_uris
pass_thru
sort <sort_field> [<direction>]
}
示例
example.com {
root * /var/www/example
file_server
}