来自:http://blog.csdn.net/lixuyuan/article/details/6591807
1、下载:http://www.acme.com/software/mini_httpd/mini_httpd-1.19.tar.gz
2、解压:tar zxvf mini_httpd-1.19.tar.gz
3、编译,安装:cd mini_httpd-1.19
make
make install
4、建立存放网页和cgi的目录:mkdr mini
mkdir mini/wwwroot
mdir mini/wwwroot/cgi-bin
5、写配置文件:vim mini/mini_httpd.conf
内容:
port=8080
dir=/home/XXX/mini_httpd-1.19 /mini/wwwroot
cgipat=cgi-bin/*
user=nobody
pidfile=/home/XXX/mini_httpd-1.19 /mini/mini_httpd.pid
logfile=/home/XXX/mini_httpd-1.19 /mini/mini_httpd.log
6、把网页放在wwwroot下
7、打开mini_httpd:/usr/local/sbin/mini_httpd -C /home/XXX/mini_httpd-1.19 /mini/mini_httpd.conf
8、在浏览器里打开localhost:8080即可访问
华硕的RT-N56U无线路由器使用mini_httpd 作为web server,与Ralink使用的goahead
一、mini_httpd - small HTTP server
Fetch version 1.19. : acme.com/software/mini_httpd/mini_httpd is a small HTTP server.Its performance is not great, but for low or medium traffic sites it'squite adequate.It implements all the basic features of an HTTP server, including:
- GET, HEAD, and POST methods.
- CGI.
- Basic authentication.
- Security against ".." filename snooping.
- The common MIME types.
- Trailing-slash redirection.
- index.html, index.htm, index.cgi
- Directory listings.
- Multihoming / virtual hosting.
- Standard logging.
- Custom error pages.
It can also be configured to do SSL/HTTPS and IPv6.
二、GoAhead WebServer: http://www.embed.com.cn/protocol/goahead/webserver.asp
GoAhead WebServer采用开放源代码方式,任何人都可以下载、评估并修改代码,目的是为了使GoAhead WebServer成为市场上最领先的嵌入式Web服务器。
支持的平台 | 定制的平台 |
Windows NT/98/95 | ChorusOS |
Windows CE | pSOS |
Embedd Linux | uCOS |
Linux | IRIX |
VxWorks | HP-UX |
QNX | RTEMS |
Lynx |
重要特性:
支持虚拟服务器
可使用SNMP代理
支持SSL v3
具有搜索引擎
支持ASP、JavaScript、CGI、DHTML
容易移植和系统集成
可不使用文件系统
优点:性能好,功能多且代码开放 缺点:只有Web服务器,在整套解决方案时可能会导致维护困难