Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| zh-cn:doc:howto:http.uhttpd [2015/01/20 07:54] – created leangjia | zh-cn:doc:howto:http.uhttpd [2022/12/26 12:13] (current) – 同步 heybrowhatsup | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== uHTTPd ====== | ||
| + | **uHTTPd** 是一个 OpenWrt/ | ||
| + | 当然,uHTTPd 也能提供一个常规 Web 服务器所需要的所有功能。 | ||
| + | 其源代码可在以下 git 存储库中找到: | ||
| + | |||
| + | * https:// | ||
| + | |||
| + | ===== 特性 ===== | ||
| + | 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) via a libustream-* SSL library (on top of an actual SSL library: mbedtls (formerly polarssl), openssl, wolfssl (formerly cyassl)). | ||
| + | Previously the package '' | ||
| + | In Dec2016 luci-ssl installed by default libustream-mbedtls. | ||
| + | 自2020 年 8 月起,luci-ssl 切换到 WolfSSL,默认安装 libustream-wolfssl。 | ||
| + | |||
| + | 与其他很多 Web 服务器相比, uHTTPd 支持[[zh-cn/ | ||
| + | |||
| + | ===== 安装 ===== | ||
| + | uHTTPd 虽然是 OpenWrt 的标准 HTTP 服务器,但不包含在 OpenWrt 的主分支的发行版固件中。它的包名是 '' | ||
| + | | ||
| + | opkg update | ||
| + | opkg install uhttpd | ||
| + | |||
| + | 此外,可以通过安装 LuCI [[zh: | ||
| + | |||
| + | ===== 配置 ===== | ||
| + | uHTTPd 的配置自 OpenWrt 10.03 (Backfire) 开始便很好地与 OpenWrt 的 [[zh: | ||
| + | |||
| + | 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. | ||