zoukankan      html  css  js  c++  java
  • uhttpd配置文件分析

    文件位于 /etc/config/uhttpd。

    root@hbg:/etc/config# cat uhttpd

    config uhttpd 'main'
            list listen_http '0.0.0.0:80'          //  监听端口为80,协议为ipv4
            list listen_http '[::]:80'                //  监听端口为80,协议为ipv6
            list listen_https '0.0.0.0:443'       //  监听端口为443,协议为ipv4,使用https 
            list listen_https '[::]:443'            //  监听端口为443,协议为ipv6,使用https 
            option home '/www'                    // 文件存放路径
            option rfc1918_filter '1'               
            option max_requests '3'            // 最大的请求书,如果超出,需排队
            option max_connections '100'    // 最大的tcp连接数,如果超出,需排队
            option cert '/etc/uhttpd.crt'        // 认证文件,依赖于https
            option key '/etc/uhttpd.key'        // 认证秘钥,依赖于https
            option cgi_prefix '/cgi-bin'          // cgi脚本路径
            option script_timeout '60'          // cgi或lua请求超时时间
            option network_timeout '30'      // 网络重起超时时间
            option http_keepalive '20'           
            option tcp_keepalive '1'
            option ubus_prefix '/ubus'

    config cert 'px5g'
            option days '730'
            option bits '1024'
            option country 'DE'
            option state 'Berlin'
            option location 'Berlin'
            option commonname 'OpenWrt'

    root@hbg:/etc/config#

  • 相关阅读:
    Linux忘了root的密码怎么办
    缩略图的实现
    ASP.NET程序编写注意 (转载)
    太极拳
    Linux系统管理技巧大荟萃
    茶经(转载)
    datagrid的显示控制
    太极功
    Linux下硬盘分区详解
    Tomcat4.0中文问题简单解决方法
  • 原文地址:https://www.cnblogs.com/rohens-hbg/p/5593529.html
Copyright © 2011-2022 走看看