首页 > Web开发 > 详细

uhttpd配置文件分析

时间:2016-06-17 12:21:42      阅读:546      评论:0      收藏:0      [点我收藏+]

文件位于 /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#

uhttpd配置文件分析

原文:http://www.cnblogs.com/rohens-hbg/p/5593529.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!