Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
zh-cn:doc:howto:http.uhttpd [2018/03/04 07:55] – ↷ Links adapted because of a move operation zh-cn:doc:howto:http.uhttpd [2022/12/26 12:11] – 同步英文版内容 heybrowhatsup
Line 1: Line 1:
 ====== uHTTPd ====== ====== uHTTPd ======
-**uHTTPd** 是一个 OpenWrt/LUCI 开发者从头编写的 Web 服务器。 它着力于实现一个稳定高效的服务器,能够满足嵌入式设备的轻量级任务需求,且能够与 OpenWrt 的配置框架 (UCI) 整合。默认情况下它被用于 OpenWrt 的 Web 管理接口 [[zh-cn/doc:techref:luci|LuCI]]。当然,uHTTPd 也能提供一个常规 Web 服务器所需要的所有功能。+**uHTTPd** 是一个 OpenWrt/LUCI 开发者从头编写的 Web 服务器。 它着力于实现一个稳定高效的服务器,能够满足嵌入式设备的轻量级任务需求,且能够与 OpenWrt 的配置框架 (UCI) 整合。默认情况下它被用于 OpenWrt 的 Web 管理接口 [[zh:docs:techref:luci|LuCI]]。 
 +当然,uHTTPd 也能提供一个常规 Web 服务器所需要的所有功能。 
 + 
 +其源代码可在以下 git 存储库中找到: 
 + 
 +  * https://git.openwrt.org/project/uhttpd.git
  
 ===== 特性 ===== ===== 特性 =====
Line 15: Line 20:
   opkg install uhttpd   opkg install uhttpd
  
-此外,可以通过安装 LuCI [[webinterface.overview|Web 界面]]以将 uHTTPd 作为其一个依赖包来安装。此方法会同时安装 [[zh-cn/doc:techref:luci|LuCI]] 管理 OpenWrt 设备所必要的包,请参考 [[luci.essentials|LuCI 在 uHTTPd 上的配置]]。当然也可以用[[http.overview|其他 Web 服务器]]来配置 Web 界面。+此外,可以通过安装 LuCI [[zh:docs:guide-user:luci:webinterface.overview|Web 界面]]以将 uHTTPd 作为其一个依赖包来安装。此方法会同时安装 [[zh:docs:techref:luci|LuCI]] 管理 OpenWrt 设备所必要的包,请参考 [[luci.essentials|LuCI 在 uHTTPd 上的配置]]。当然也可以用[[http.overview|其他 Web 服务器]]来配置 Web 界面。
  
 ===== 配置 ===== ===== 配置 =====
-uHTTPd 的配置自 OpenWrt 10.03 (Backfire) 开始便很好地与 OpenWrt 的 [[zh-cn/doc:UCI]] 集成在一起。它的 UCI 配置文件为 ''/etc/config/uhttpd''。uHTTPd 直接依赖于此文件,不再需要其它通过 UCI 生成的配置文件 (然而其它很多程序都需要这样做,例如 Samba)。uHTTPd 通过 UCI 进行配置,请参考[[docs:guide-user:services:webserver:uhttpd|通过 UCI 配置 uHTTPd]]. +uHTTPd 的配置自 OpenWrt 10.03 (Backfire) 开始便很好地与 OpenWrt 的 [[zh:docs:guide-user:base-system:uci]] 集成在一起。它的 UCI 配置文件为 ''/etc/config/uhttpd''。uHTTPd 直接依赖于此文件,不再需要其它通过 UCI 生成的配置文件 (然而其它很多程序都需要这样做,例如 Samba)。uHTTPd 通过 UCI 进行配置,请参考[[docs:guide-user:services:webserver:uhttpd|通过 UCI 配置 uHTTPd]]. 
  
 uHTTPd 提供了一个启动脚本 /etc/init.d/uhttpd 以控制服务的运行状态,并运行在 OpenWrt 启动时启动。 uHTTPd 提供了一个启动脚本 /etc/init.d/uhttpd 以控制服务的运行状态,并运行在 OpenWrt 启动时启动。
 +
 +==== 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 /www/index.html /www/index.html.orig
 +</code>
 +
 +Done this anything is shown as list of file and even symbolic links works.
  • Last modified: 2022/12/26 12:13
  • by heybrowhatsup