Adding extra directories outside root_dir ? #2591
-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Please follow the guidelines in the documentation, examples and tutorials available. Why do you need "several mongoose servers" in the first place ? What are you talking about ? Mongoose struct mgr instances ? Actual hosts running mongoose with some file system mounted in all of them ?
You just put your files where you want them to be and instruct Mongoose to serve from that directory and down the tree. |
Beta Was this translation helpful? Give feedback.
Please follow the guidelines in the documentation, examples and tutorials available.
Why do you need "several mongoose servers" in the first place ? What are you talking about ? Mongoose struct mgr instances ? Actual hosts running mongoose with some file system mounted in all of them ?
Mongoose does not know about serving files, you actually write your server event handler. Will you plan to use which function ?
https://mongoose.ws/documentation/#mg_http_serve_file ?
https://mongoose.ws/documentation/#mg_http_serve_dir ?
What do you mean by "outside root_dir" ? What is "root_dir" for you, the element in
struct mg_http_serve_opts
? https://mongoose.ws/documentation/#struct-mg_http_serve_opts…