Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I need a very lightweight Windows HTTP server to put onto CD/DVD. I've tried just using “file:” “protocol”, but there're too many problems:

  1. IE disallows JavaScript by default. There's a workaround with “saved from internet” comment, but CSS3 Pie using HTC still doesn't work from a local drive.

  2. JavaScript needs to generate files and let the user save them. HTML5 File Writer API has almost no support, data URIs have size limits in IE, don't let setting default file name etc. The only viable solution seems to be Downloadify which uses Flash. And this feature doesn't work when HTML and SWF are loaded from local drive.

  3. AJAX doesn't work at all.

So, I need a server with the following properties:

  1. No installation, relies only on config file(s).

  2. Can be executed from a read-only folder.

  3. MIME types can be configured for file extensions. (IE is sometimes picky about HTC.)

  4. Runs on Windows XP/Vista/7.

share|improve this question
    
Have you considered making this an HTA application instead? It should do everything you've asked for –  Jim B Dec 10 '11 at 2:42

1 Answer 1

Take a look at HTTP File Server. It's been a while since I've used it, but it may be what you're looking for.

share|improve this answer
    
HFS looked promising, it has all the features I've asked for, but it only works with absolute file paths which makes running preconfigured HFS from CD/DVD impossible. :( And even more problems appear, HTC components don't work for some reason. Maybe IE has a separate setting for localhost IPs... –  Athari Dec 10 '11 at 3:39

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.