当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
23 Star 41 Fork 12

xiaozhuai/efserv
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
config.ini 1.62 KB
一键复制 编辑 原始数据 按行查看 历史
xiaozhuai 提交于 2017-04-21 17:51 . enhance user interface
# EzFileServer project
# author: xiaozhuai
# define the listening addr, use 0.0.0.0 by default
#listen = 0.0.0.0
# define the listening port, use 80 by default
port = 8080
# whether enable dir indexs, is enabled by default, 0 disable, 1 enable
# if disable, all request to dir will be denied (403)
# dir_indexs = 1
# define the view tpl of dir indexs, use "/usr/local/efserv/tpl/dir_indexs.html" by default
# dir_indexs_tpl = /usr/local/efserv/tpl/dir_indexs.html
# dir_indexs_tpl = tpl/dir_indexs.html
# define the err page tpl, use "/use/local/efserv/tpl/err.html" by default
# err_tpl = /use/local/efserv/tpl/err.html
# err_tpl = tpl/err.html
# define the access rule file name, use ".efserv_access" by default. This file should be under the root of web server
# .efserv_access should be like this
# - ^/private/.*$
# + ^/private/resources/.*$
# all request start with "/private/" will be denied, except the request start with "/private/resources/"
# warning!
# if change it to
# + ^/private/resources/.*$
# - ^/private/.*$
# things will be different, all request start with "/private/" will be denied
# the rule are matched from up to bottom, the last rule will be effective
# if nothing is private, just remove this file or let it empty
# by default, ".efserv_access" itself and ".efserv_config" in web root is denied, you can allow it by add line "+ .efserv_access" and "+ .efserv_config"
# access_rule = .efserv_access
# define the built-in resources dir, if file not exist in web root, it will search in this dir
# use "/usr/local/efserv/built-in" by default
# built_in = /usr/local/efserv/built-in
# built_in = built-in
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/xiaozhuai/efserv.git
[email protected]:xiaozhuai/efserv.git
xiaozhuai
efserv
efserv
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385