For applications that need a user configuration file in order to execute, this file update may involve a complex procedure (ftp, telnet, Unix commands, ...) that is not accessible to a "simple user", ... or a customer.
Those lines decribe what I did to answer the question of target files update, using boa and the library "cgihtml".
The version of cgihtml that is available in the uClinux-dist at this time is outdated. I have submitted the patch to upgrade it: please, check if your distribution is up to date. If not, I recommend you apply the patch below.
To summarize, if the version number that can be found in user/cgihtml/CHANGES is greater or equal to 1.69, all is ok.
To include all your changes into your zImage, you must follow these steps:
copy your HTML file(s) and your CGI-Program(s) into the dir vendors/Altera/nios2, and add the related lines in vendors/Altera/nios2/Makefile.
$(ROMFSINST) /home/httpd/cgi-bin/mycgipgm # for your CGI-Programs
$(ROMFSINST) /home/httpd/index.html # for your HTML pages
$(ROMFSINST) /home/httpd/boa.conf # for boa configuration
Warning: if "generic cgi" is selected in make menuconfig / Customize Appl/Lib Settings / Miscellanous Configuration, the files index.html and boa.conf will be overrided by the files in vendors/Generic/httpd.
You can obviously modify, but to get all my customizations located in the single vendors/Altera/nios2 directory, I have prefered to unselect this item.
because UPLOADDIR is defined to "/usr/tmp" in user/cgihtml/Makefile, the files you will upload will be stored there. You have thus to add usr/tmp to the ROMFS_DIR list, and the line
chmod 777 $(ROMFSINST)/usr/tmp
to the file vendors/Altera/nios2/Makefile.
OK, time for you to play with HTML and CGI-Programs: have fun!
PS: thanks to Endre who gave me the initial pointers.