web服务器和开发语言

113 views
Skip to first unread message

peter zhou

unread,
Mar 13, 2010, 11:55:07 PM3/13/10
to mi424_...@googlegroups.com
问一下大家openwrt或者dd-wrt使用的是什么web嵌入式服务器啊,使用什么语言开发的啊?

最近在研究boa和cgi,感觉用C写打印网页有点麻烦。

Xiangfu Liu

unread,
Mar 14, 2010, 12:01:19 AM3/14/10
to mi424_...@googlegroups.com
Hi Peter Zhou
手上没有 dd-wrt 的代码。
这是OPENWRT下的 WEB 服务器:

apache............................................. The Apache Web Server axhttpd.............. A small embedded web server using the axTLS library
hiawatha................................... A very lightweight web server lighttpd........................... A flexible and lightweight web server ---> mini-httpd............................................ A small web server mini-httpd-htpasswd................ Utility to generate HTTP access files mini-httpd-matrixssl........... A small web server (built with MatrixSSL) mini-httpd-openssl............... A small web server (built with OpenSSL) spawn-fcgi............................ Tool to spawn fastcgi applications

peter zhou wrote:
> 问一下大家openwrt或者dd-wrt使用的是什么web嵌入式服务器啊,使用什么语言开发的啊?
>
> 最近在研究boa和cgi,感觉用C写打印网页有点麻烦。
>

K.I.S.S

unread,
Mar 14, 2010, 5:37:21 AM3/14/10
to MI424_OpenWRT
就用busybox里面的 Http啊

peter zhou

unread,
Mar 14, 2010, 10:55:18 PM3/14/10
to mi424_...@googlegroups.com
在 2010年3月14日 下午1:01,Xiangfu Liu <xian...@gmail.com> 写道:
> Hi Peter Zhou
> 手上没有 dd-wrt 的代码。
> 这是OPENWRT下的 WEB 服务器:
>
> apache............................................. The Apache Web Server
这个在嵌入式设备上也有用的阿,不是说移植上去很庞大的么

>
> axhttpd.............. A small embedded web server using the axTLS library
>
> hiawatha................................... A very lightweight web server
>
> lighttpd........................... A flexible and lightweight web server
有听说过用的

> --->
> mini-httpd............................................ A small web server
这个好像用的多点哈,与lighttpd比较

>
> mini-httpd-htpasswd................ Utility to generate HTTP access files
>
> mini-httpd-matrixssl........... A small web server (built with MatrixSSL)
>
> mini-httpd-openssl............... A small web server (built with OpenSSL)
上面两种应该与mini-http差不多吧

peter zhou

unread,
Mar 14, 2010, 11:03:33 PM3/14/10
to mi424_...@googlegroups.com
在 2010年3月14日 下午5:37,K.I.S.S <snip...@gmail.com> 写道:
> 就用busybox里面的 Http啊

在网上搜的:
BusyBox的httpd工具实现上存在输入验证漏洞,远程攻击者可能利用此漏洞遍历服务器的目录。
攻击者可以在URL串中插入编码后的目录遍历串导致遍历服务器的目录,以进程权限检索任意文件。

Xiangfu Liu

unread,
Mar 14, 2010, 11:14:11 PM3/14/10
to mi424_...@googlegroups.com
peter zhou wrote:
> 在 2010年3月14日 下午1:01,Xiangfu Liu <xian...@gmail.com> 写道:
>> Hi Peter Zhou
>> 手上没有 dd-wrt 的代码。
>> 这是OPENWRT下的 WEB 服务器:
>>
>> apache............................................. The Apache Web Server
> 这个在嵌入式设备上也有用的阿,不是说移植上去很庞大的么
Hi Peter
这里列的这些都已经在OPENWRT下移植完了。已经在OPENWRT的代码库里了

K.I.S.S

unread,
Mar 14, 2010, 11:19:18 PM3/14/10
to MI424_OpenWRT
兄弟,拜托,你看的新闻是06年的吧?


On Mar 15, 11:03 am, peter zhou <peterzhou2...@gmail.com> wrote:

peter zhou

unread,
Mar 15, 2010, 3:03:48 AM3/15/10
to mi424_...@googlegroups.com
在 2010年3月15日 上午11:19,K.I.S.S <snip...@gmail.com> 写道:
> 兄弟,拜托,你看的新闻是06年的吧?

确认了下,的确。

open-wrt在配置webif管理界面的时候默认就是使用的Box HTTPD server的,研究了下,好像是使用shell写的。

另外可以修改其默认的Box HTTPD server么?比喻我想使用mini-httpd。

linux_pro

unread,
Mar 15, 2010, 3:22:03 AM3/15/10
to mi424_...@googlegroups.com
兄弟,自己多多研究下啊.

--
您收到此邮件是因为您订阅了 Google 网上论坛的“MI424_OpenWRT”论坛。
要向此网上论坛发帖,请发送电子邮件至 mi424_...@googlegroups.com
要取消订阅此网上论坛,请发送电子邮件至 mi424_openwr...@googlegroups.com
若有更多问题,请通过 http://groups.google.com/group/mi424_openwrt?hl=zh-CN 访问此网上论坛。


Xiangfu Liu

unread,
Mar 15, 2010, 3:12:16 AM3/15/10
to mi424_...@googlegroups.com
peter zhou wrote:
> 在 2010年3月15日 上午11:19,K.I.S.S <snip...@gmail.com> 写道:
>> 兄弟,拜托,你看的新闻是06年的吧?
>
> 确认了下,的确。
>
> open-wrt在配置webif管理界面的时候默认就是使用的Box HTTPD server的,研究了下,好像是使用shell写的。
>
> 另外可以修改其默认的Box HTTPD server么?比喻我想使用mini-httpd。
Hi Peter

在OpenWrt 的目录下运行 “make menuconfig" 自己配置就可以了。

----------
│ Symbol: PACKAGE_mini-httpd [=n] │
│ Prompt: mini-httpd............................................ A small │
│ Defined at tmp/.config-package.in:9929
│ Location: │
│ -> Network │
│ -> Web

K.I.S.S

unread,
Mar 15, 2010, 4:16:49 AM3/15/10
to MI424_OpenWRT
sorry,论坛我设置的是 审批机制,因为太多垃圾邮件,很影响情绪,我是先回复才审批.所以看兄弟发言在我后面.

pfmnpa

unread,
Mar 15, 2010, 6:04:05 AM3/15/10
to mi424_openwrt
审批审批,打倒K.I.S.S~~^_^。
openwrt的web server是lua吧?写web的语言是luci吧?当然那个白俄罗斯的版本似乎为了支持php5而引入了lighttpd。
谁要拿shell写cgi啊?谁啊?我想死你们了。。。。
 
 
2010-03-15

pfmnpa
 
到今天,你再没有萎靡不前或者退缩的理由了!做暴风中狂舞的人!

发件人: K.I.S.S
发送时间: 2010-03-15  16:16:59
收件人: MI424_OpenWRT
抄送:
主题: Re: web服务器和开发语言
sorry,论坛我设置的是 审批机制,因为太多垃圾邮件,很影响情绪,我是先回复才审批.所以看兄弟发言在我后面.

peter zhou

unread,
Mar 15, 2010, 8:50:10 AM3/15/10
to mi424_...@googlegroups.com
在 2010年3月15日 下午6:04,pfmnpa <pfm...@gmail.com> 写道:
> 审批审批,打倒K.I.S.S~~^_^。
> openwrt的web server是lua吧?写web的语言是luci吧?当然那个白俄罗斯的版本似乎为了支持php5而引入了lighttpd。

按照 Xiangfu Liu <xian...@gmail.com>说的有大好几个,我配置的是使用webif,没有用lua

> 谁要拿shell写cgi啊?谁啊?我想死你们了。。。。

你在配置webif为管理界面的时候就是使用shell+awk+haserl写CGI的

pfmnpa

unread,
Mar 15, 2010, 11:08:29 PM3/15/10
to mi424_openwrt
没看明白啥意思。。。。我是说,我一般写cgi都用shell,简单明了,很快上手,搭配好css、js之类效果同样很好。
还有,啥叫haserl?
 
 
2010-03-16

pfmnpa
 
到今天,你再没有萎靡不前或者退缩的理由了!做暴风中狂舞的人!

发件人: peter zhou
发送时间: 2010-03-15  20:50:16
收件人: mi424_openwrt
抄送:
主题: Re: Re: web服务器和开发语言

peter zhou

unread,
Mar 16, 2010, 2:51:43 AM3/16/10
to mi424_...@googlegroups.com
在 2010年3月16日 上午11:08,pfmnpa <pfm...@gmail.com> 写道:
> 没看明白啥意思。。。。我是说,我一般写cgi都用shell,简单明了,很快上手,搭配好css、js之类效果同样很好。
> 还有,啥叫haserl?

你既然一般写CGI都用shell,那就应该知道haserl吧。
haserl解释:A CGI wrapper to embed shell scripts in HTML documents

peter zhou

unread,
Mar 16, 2010, 2:57:05 AM3/16/10
to mi424_...@googlegroups.com
在 2010年3月15日 下午3:12,Xiangfu Liu <xian...@gmail.com> 写道:
> peter zhou wrote:
>>
>> 在 2010年3月15日 上午11:19,K.I.S.S <snip...@gmail.com> 写道:
>>>
>>> 兄弟,拜托,你看的新闻是06年的吧?
>>
>> 确认了下,的确。
>>
>> open-wrt在配置webif管理界面的时候默认就是使用的Box HTTPD server的,研究了下,好像是使用shell写的。
>>
>> 另外可以修改其默认的Box HTTPD server么?比喻我想使用mini-httpd。
>
> Hi Peter
>
> 在OpenWrt 的目录下运行 "make menuconfig" 自己配置就可以了。

谢谢,在menuconfig中找了下,没有找到mini-httpd或其他之类的server,就一个默认的httpd在busybox中,可能是我少更新了什么还是其他的什么原因?你找到的mini-httpd在具体menuconfig那个路径下啊?

Xiangfu Liu

unread,
Mar 16, 2010, 11:19:29 PM3/16/10
to mi424_...@googlegroups.com, peter zhou
On 03/16/2010 02:57 PM, peter zhou wrote:
>> 在OpenWrt 的目录下运行 "make menuconfig" 自己配置就可以了。
>
> 谢谢,在menuconfig中找了下,没有找到mini-httpd或其他之类的server,就一个默认的httpd在busybox中,可能是我少更新了什么还是其他的什么原因?你找到的mini-httpd在具体menuconfig那个路径下啊?
>

Hi Peter Zhou

1. you need update the package:
$./scripts/feeds update -a && ./scripts/feeds install -a

2. run make menuconfig again :-)

----
I think the mini-httpd is atsvn://svn.openwrt.org/openwrt/packages

by the way:
here is my feeds.conf:
src-svn packages svn://svn.openwrt.org/openwrt/packages
src-svn xwrt http://x-wrt.googlecode.com/svn/trunk/package
src-svn luci http://svn.luci.subsignal.org/luci/branches/luci-0.9/contrib/package
src-svn phone svn://svn.openwrt.org/openwrt/feeds/phone
src-svn efl svn://svn.openwrt.org/openwrt/feeds/efl
src-svn desktop svn://svn.openwrt.org/openwrt/feeds/desktop
src-svn xfce svn://svn.openwrt.org/openwrt/feeds/xfce
src-git qipackages git://projects.qi-hardware.com/openwrt-packages.git

peter zhou

unread,
Mar 17, 2010, 12:49:58 AM3/17/10
to Xiangfu Liu, mi424_...@googlegroups.com
在 2010年3月17日 上午11:19,Xiangfu Liu <xian...@gmail.com> 写道:
> On 03/16/2010 02:57 PM, peter zhou wrote:
>>>
>>> 在OpenWrt 的目录下运行 "make menuconfig" 自己配置就可以了。
>>
>>
>> 谢谢,在menuconfig中找了下,没有找到mini-httpd或其他之类的server,就一个默认的httpd在busybox中,可能是我少更新了什么还是其他的什么原因?你找到的mini-httpd在具体menuconfig那个路径下啊?
>>
>
> Hi Peter Zhou
>
> 1. you need update the package:
> $./scripts/feeds update -a && ./scripts/feeds install -a
>
> 2. run make menuconfig again :-)

谢谢,找到原因了,原来我在更新完成后安装的时候就只装了个webif( ./scripts/feeds install webif)
现在都安装后就可以找到了

Xiangfu Liu

unread,
Mar 17, 2010, 1:49:32 AM3/17/10
to peter zhou, mi424_...@googlegroups.com
On 03/17/2010 12:49 PM, peter zhou wrote:
> 在都安装后就可以找到了
great.
Reply all
Reply to author
Forward
0 new messages