I managed to configure my Apache to run cgi scripts and I tried to use javascript to generate output.
#!C:\php\php.exe
<script>
document.write("Hello world!");
</script>
However this only sends the contents and the document.write is run on the client. I'd like to send Hello world! by javascript.
I know there is nodejs. I wonder if there is a module for Apache or some settings that enables running javascript on the server and send only the contents of document.write?