I am using the basic example provided my mongoose (restful_server). I was able to compile and run this example. My environment is ubuntu 16.04. I am trying to disable directory listing. In the code I have added " s_http_server_opts.enable_directory_listing = "no";".
After compiling and running the exe, I am seeing this line in the command line: "Starting RESTful server on port 8100" since I am running this sever on 8100 port. When open the below url in browser: "http://127.0.0.1:8100", I am able to see the home page and so far so good. But when I have tried to type : "http://127.0.0.1:8100/Makefile", my makefile is visible and I am able to view all the files in the directory. I need to disable access to all the files in the directory and nothing should be view able except index page. Request you to let me know how to disable the files access in the directory
Thanks in advance