HTTPD Server - fsdata.c issue
Bernard,
I found the issue with the web code. Dreamweaver creates a dwsync.xml file in each sub-directory. I don’t know exactly what they are doing. Inside each file there are lines of text for each html file in the directory that says the web server IP is 172.16.1.1 and the dirctory for the html files is /var/www/html. That IP and directory is where I tested the web code on my Linux box as it was being developed. By deleting those files, I was able to have the web site come up on the Discoery board.
The only other problem I found is that the makefsdata.exe program has a problem with sub-directories. I ended up having to put all the html code in one directory or I could not compile the code in System Workbench.
As an example, I had a file StockPhone.jpg in the images directory. The makefsdata tool created this structure:
const struct fsdata_file file_images_StockPhone_jpg[] = Rest of structure.
Trying to compile that code, I get an error message that the symbol could not be found. It was the same error message for any files in any sub-directory. As I said, moving everything to one root directory solved the problem. This will not be a problem for my application, as I will only have a single directory for the html code.