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#

posted @ 2016-06-17 11:36  hbg-rohens  阅读(7471)  评论(0编辑  收藏  举报