Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6251413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:36:36+00:00 2026-05-24T13:36:36+00:00

I just embedded the Mongoose Web Server into my C++ dll (just a single

  • 0

I just embedded the Mongoose Web Server into my C++ dll (just a single header and recommended in most of the stack overflow threads) and I have it up and running properly with the very minimal example code.

However, I am having a rough time finding any sort of tutorials, examples, etc. on configuring the very basic necessities of a web server. I need to figure out the following…

1) How to allow directory browsing

2 Is it possible to restrict download speeds on the files?

3) Is it possible to have a dynamic list of IPs addresses allowed to download files?

4) How to allow the download of specific file extensions (.bz2 in this case) ANSWERED

5) How to bind to a specific IP Address ANSWERED

Most of the information I have found is in regards to using the pre-compiled binary release, so I am a bit stumped right now. Any help would be fantastic!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T13:36:38+00:00Added an answer on May 24, 2026 at 1:36 pm

    1) “enable_directory_listing” option

    2) Not built into Mongoose (at least not the version I have, which is about 6 months old). [EDIT:] Newer versions of Mongoose support throttling download speed. From the manual…

    Limit download speed for clients. throttle is a comma-separated list
    of key=value pairs, where key could be:

    *                   limit speed for all connections
    x.x.x.x/mask        limit speed for specified subnet
    uri_prefix_pattern  limit speed for given URIs
    

    The value is a floating-point number of bytes per second, optionally
    followed by a k or m character, meaning kilobytes and megabytes
    respectively. A limit of 0 means unlimited rate. The last matching
    rule wins. Examples:

    *=1k,10.0.0.0/8=0   limit all accesses to 1 kilobyte per second,
                        but give connections from 10.0.0.0/8 subnet
                        unlimited speed
    
    /downloads/=5k      limit accesses to all URIs in `/downloads/` to
                        5 kilobytes per secods. All other accesses are unlimited
    

    3) “access_control_list” option. In the code accept_new_connection calls check_acl that compares the client’s IP to a list of IPs to accept and/or ignore. From the manual…

    Specify access control list (ACL). ACL is a comma separated list of IP
    subnets, each subnet is prepended by ‘-‘ or ‘+’ sign. Plus means
    allow, minus means deny. If subnet mask is omitted, like “-1.2.3.4”,
    then it means single IP address. Mask may vary from 0 to 32 inclusive.
    On each request, full list is traversed, and last match wins. Default
    setting is to allow all. For example, to allow only 192.168/16 subnet
    to connect, run “mongoose
    -0.0.0.0/0,+192.168/16”. Default: “”

    http://code.google.com/p/mongoose/wiki/MongooseManual

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an embedded DLL in my app and I need to write it
I have just finished making a flash banner in Fl5 and have embedded it
I'm just starting to design some embedded devices, and am looking for resources. What
Just wondering, if I install a Windows service from 64-bit process (service code embedded
just a quick question: I am a CS undergrad and have only had experience
Just how much slower are events? I have written a streaming XML parser (that
I have a document with an embedded document in it. I have 2 forms,
So, in Flash Builder on Windows, my app and all embedded fonts compile just
I just got hold of a PDA (Samsung Omnia i900) with an embedded motion
I was just wondering what are the pros and cons of using embedded images

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.