Unable to server files from web_root, it's returning 404 #2526
-
Hi All:
However when i trying to access. http://ipaddress/ the board returned 404, and i tried http://ipaddress/index.html it's returning 404 as well. I tried different combination of MG_ENABLE_PACKED_FS and MG_ENABLE_FILE It doesn't seems to make any different. I am using the bare metal Architecture. Can someone point me to the correct direction? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
We already know our tutorials, please don't paste them here, just refer to them |
Beta Was this translation helpful? Give feedback.
-
Hi Scaprile:
Thank you for your pointer about bare metal. I think i was looking at an older version of the example by clicking on the link of " view code on github", however the code was already updated. Now the code is working with only Linux or Windows instead of the flag "MG_ENABLE_PACKED_FS". |
Beta Was this translation helpful? Give feedback.
We already know our tutorials, please don't paste them here, just refer to them
Our examples work, so please be run the example as is and learn from it. Do not try, do as the tutorial says and as you can see in the Makefile.
If there is an actual issue, please open an issue, honor the issue template so we can know your scenario and reproduce the issue if necessary, and let us know exactly what you are doing
What is "your local environment" ? What is "the board" ?
What is your filesystem ? Do you actually have one ?
If you want to serve from a filesystem, then don't define the packed file system and serve from your file system, make sure it is supported and configure for it. The example co…