Skip to content

Adding extra directories outside root_dir ? #2591

Discussion options

You must be logged in to vote

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

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gitced
Comment options

@scaprile
Comment options

Answer selected by scaprile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants