This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

HTTP server default page

Hi all,
I'm trying to figure out the logic behind the TCPNet HTTP server in terms of locating the site's default page.

What if I try to browse the site by only specifying the host in url ( i.e. http://myboard/ )? Is it looking for an hardcoded index.html? What if this file is not present or, at least, not in the FileTab table?

As far as I can get, if index.html is not present in FileTab the first file is used instead, but I can't get it working well if this first file is a .cgi.

Am I doing any wrong assumption?

TIA

Parents
  • Interface properly configured means when HTTP server wants to open a file, that your File System opens it. When HTTP server wants to read data from the file, that your File System reads the data from a file to a buffer etc. That's all.

    You do not have to have FlashFS enabled. HTTP Server has no idea what File System is behind http_fopen(), http_fclose() and http_fread() functions. As long as File System works as expected, then HTTP Server should work with ANY file system behind.

    Franc

Reply
  • Interface properly configured means when HTTP server wants to open a file, that your File System opens it. When HTTP server wants to read data from the file, that your File System reads the data from a file to a buffer etc. That's all.

    You do not have to have FlashFS enabled. HTTP Server has no idea what File System is behind http_fopen(), http_fclose() and http_fread() functions. As long as File System works as expected, then HTTP Server should work with ANY file system behind.

    Franc

Children