Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| zh-cn:doc:howto:http.uhttpd [2018/06/07 12:45] – ↷ Links adapted because of a move operation tmomas | zh-cn:doc:howto:http.uhttpd [2022/12/26 12:13] (current) – 同步 heybrowhatsup | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== uHTTPd ====== | ====== uHTTPd ====== | ||
| - | **uHTTPd** 是一个 OpenWrt/ | + | **uHTTPd** 是一个 OpenWrt/ |
| + | 当然,uHTTPd 也能提供一个常规 Web 服务器所需要的所有功能。 | ||
| + | |||
| + | 其源代码可在以下 git 存储库中找到: | ||
| + | |||
| + | * https:// | ||
| ===== 特性 ===== | ===== 特性 ===== | ||
| uHTTPd 作为一个通用的 HTTP 服务,并不只满足于运行 OpenWrt 的 Web 管理界面,而是提供了媲美其他现代 Web 服务器的功能。这包括 TLS (SSL)、CGI 以及 Lua。uHTTPd 是单线程的,但是支持多个实例 (例如,支持监听多个端口,每个端口都可以使用独立的文档根目录以及其他功能)。 | uHTTPd 作为一个通用的 HTTP 服务,并不只满足于运行 OpenWrt 的 Web 管理界面,而是提供了媲美其他现代 Web 服务器的功能。这包括 TLS (SSL)、CGI 以及 Lua。uHTTPd 是单线程的,但是支持多个实例 (例如,支持监听多个端口,每个端口都可以使用独立的文档根目录以及其他功能)。 | ||
| - | 要使用 | + | uHTTPd is built by default (since r35295 in Jan2013) to support the usage of TLS (HTTPS) |
| + | Previously the package | ||
| + | In Dec2016 luci-ssl installed by default libustream-mbedtls. | ||
| + | 自2020 年 8 月起,luci-ssl 切换到 WolfSSL,默认安装 libustream-wolfssl。 | ||
| 与其他很多 Web 服务器相比, uHTTPd 支持[[zh-cn/ | 与其他很多 Web 服务器相比, uHTTPd 支持[[zh-cn/ | ||
| Line 15: | Line 23: | ||
| opkg install uhttpd | opkg install uhttpd | ||
| - | 此外,可以通过安装 LuCI [[webinterface.overview|Web 界面]]以将 uHTTPd 作为其一个依赖包来安装。此方法会同时安装 [[zh: | + | 此外,可以通过安装 LuCI [[zh: |
| ===== 配置 ===== | ===== 配置 ===== | ||
| Line 21: | Line 29: | ||
| uHTTPd 提供了一个启动脚本 / | uHTTPd 提供了一个启动脚本 / | ||
| + | |||
| + | ==== Using the default installation for publishing files ==== | ||
| + | One could use the default installation for publishing files. | ||
| + | A quick example is to disable the redirect to luci scripts. | ||
| + | |||
| + | <code bash> | ||
| + | mv / | ||
| + | </ | ||
| + | |||
| + | Done this anything is shown as list of file and even symbolic links works. | ||