Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

If I want to serve some static content over http from Ubuntu, with an emphasis on security and efficiency (at low-moderate load), what's the best choice?

share|improve this question
add comment

2 Answers 2

We are using micro-httpd for this purpose.

It is very small and started by inetd for every single request, so it is only good for low-load environments, but it does what we need it do to. The only configuration options are the directory to be served and the port to listen on. For SSL/HTTPS support, stunnel would be used (a wrapper between unencrypted and ssl-encrypted connections).

Some more information from the man page:

It implements all the basic features of an HTTP server, including:

  • Security against ".." filename snooping.
  • The common MIME types.
  • Trailing-slash redirection.
  • index.html
  • Directory listings.
share|improve this answer
add comment

Apache is very secure and extremely efficient at serving static content, especially at low-to-moderate load. It is also only an apt-get away, no additional configuration needed.

Is there anything which makes you to look for another web server?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.