Resource download and configuration mainly refer to the following two articles:
Build Boa Webserver under embedded linux - Programmer Sought
So without further ado.
Just a brief summary of some related file paths.
1.拷贝boa到/bin
2.新建/etc/boa目录
3.拷贝boa.conf到/etc/boa
4.新建/var/log_boa目录
5.在/var/log_boa下新建access_log和error_log文档
6.新建/var/www/cgi-bin目录,该路径下放置供网页显示用的cgi文件,html文件放置在/var/www路径下
7.拷贝mime.types到/etc路径
8.拷贝libcgic.a到/lib路径
以上拷贝的文件需要赋予权限777(或者700)
If the page displays 404 not found, the path of the configuration file (/etc/boa.conf) read by boa by default may be wrong, you need to kill boa and re-specify the path boa -c /etc/boa
The demo page of the test is displayed as follows
cgi
html
If 502 Bad gateway appears on the page, you can check the permissions of the file (cgi file) and the path of the file (502 error will appear if html is placed in the cgi-bin path).