详见
主要参考
按下列参数修改boa.conf并放到/etc/boa下
Port 80
User 0
Group 0
ErrorLog /etc/boa/error_log
AccessLog /etc/boa/access_log
ServerName www.your.org.here
DocumentRoot /var/www
UserDir public_html
DirectoryIndex index.html
DirectoryMaker /usr/lib/boa/boa_indexer
KeepAliveMax 1000
KeepAliveTimeout 10
DefaultType text/plain
CGIPath /bin:/usr/bin:/usr/local/bin
Alias /doc /usr/doc
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
参照配置文件中的路径新建文件和目录
- mkdir -p /etc/boa // boa.conf存放目录
- touch /etc/boa/error_log //否则报错unable to dup2 the error log: Bad file descriptor
- touch /etc/boa/access_log //否则报错unable to dup2 the error log: Bad file descriptor
- mkdir -p /var/www //html网页存放路径,网页需命名为index.html
- mkdir -p /var/www/cgi-bin //cgi程序存放目录
- 将ubuntu下/etc/mime.types拷贝到开发板根文件系统的/etc下