1
1
I would like a dead-simple web/file server (ideally, something no more complicated than "run this command with these flags") which also allows specifying mime-types based on file extensions. Something like this would be great:
my-file-server --root=path/to/files --additional-mime-types="foo|text/plain"
Does this exist? What are my options? If not, what's the next best thing?
This is in a Linux environment, and I'm only serving the files on localhost.
That's not at all what I would consider simple. To properly run Apache you typically privileged access and must juggle a number of mental constructs. I just want to run a file server with some mime-types configuration, something like
serve-this --mime-mapping="foo|text/plain" --root=path/to/site
. – John Feminella – 2010-10-06T14:23:12.583Most default installations of apache are quite secure and run out of the box. Other than determining where to put your files it is very set and forget. The complexity is there if you want to add features. – BillThor – 2010-10-06T14:37:27.680
I agree will BillThor. John, you are right it can be very complicated, but not out of the box. I have configured web servers in windows where all I had to was run the install file and change a couple of things in the config file and that was it.... – danbo – 2010-10-06T17:41:21.270