in reply to configuring apache to automatically send Content-Type header and exec as CGI based on file extension

Slightly OT, i just wanted to add the fun to be had with 'CGI extensions': I used the second one to allow IE users to get their database results in the form of an Excel Spreadsheet. By configuring Apache to accept .xls as a CGI script (in one particular directory), the not-so-skilled users could save the file without having to change the name of the file from say, foo.cgi to foo.xls - which would have confused them.

The first one can be called just like a regular image: <img src="foo.png">. Fun stuff!

jeffa

  • Comment on (jeffa) Re: configuring apache to automatically send Content-Type header and exec as CGI based on file extension
  • Download Code