• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

05-三层技术-IP业务命令参考

目录

19-Lighttpd Web服务命令

本章节下载 19-Lighttpd Web服务命令  (92.73 KB)

docurl=/cn/Service/Document_Software/Document_Center/Routers/Catalog/LA_wireless/H3C_LA4616/Command/Command_Manual/H3C_LA4616_CR(V7)-R0615-6W300/05/201903/1155851_30005_0.htm

19-Lighttpd Web服务命令


1 Lighttpd Web服务

1.1  Lighttpd Web服务命令

1.1.1  light-http server directory

light-http server directory命令用来配置Lighttpd Web服务的工作路径。

undo light-http server directory命令用来恢复缺省情况。

【命令】

light-http server directory directory

undo light-http server directory

【缺省情况】

未配置Lighttpd Web服务的工作路径。

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

directory:表示Lighttpd Web服务的工作路径。

【使用指导】

如果在开启Lighttpd Web服务后修改Lighttpd Web服务的工作路径,则需要先关闭并再次开启Lighttpd Web服务,才能使修改后的路径生效。

如果使用Lighttpd Web服务提供的HTTPS方式的Web访问,管理员需要同时将证书保存到Lighttpd Web服务的工作路径。

【举例】

# 配置Lighttpd Web服务的工作路径为flash:/lighttpd。

<Sysname> system-view

[Sysname] light-http server directory flash:/lighttpd

【相关命令】

·     light-http server enable

1.1.2  light-http server enable

light-http server enable命令用来开启Lighttpd Web服务。

undo light-http server enable命令用来关闭Lighttpd Web服务。

【命令】

light-http server enable

undo light-http server enable

【缺省情况】

Lighttpd Web服务处于关闭状态。

【视图】

系统视图

【缺省用户角色】

network-admin

【使用指导】

开启Lighttpd Web服务前,需要先配置Lighttpd Web服务的工作路径。

Lighttpd Web服务提供HTTP和HTTPS访问分别使用80和443端口。因此在配置该功能的同时,若需配置其他使用HTTP/HTTPS服务的功能,应修改其HTTP/HTTPS服务的端口号为非80和443端口。

【举例】

# 开启Lighttpd Web服务。

<Sysname> system-view

[Sysname] light-http server enable

【相关命令】

·     light-http server directory

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们