Static file with HTTP headers

htmlhttphttp-headers

Is it possible to save a static html file with built in http headers ? So that putting it on any server will work including the http headers?

If so how?

Best Answer

For Apache, there is the module mod_asis, which does just that - reads the file and sends it on its merry way as a complete HTTP response.

This module is shipped with Apache by default, but you need to enable it first (see the docs, there's a reasonable example).