How to setup D language with Apache httpd cgi?

BoQsc vaidas.boqsc at gmail.com
Wed Jul 31 07:28:58 UTC 2019


I tried to change shebang, but: Internal Server Error still 
appears.

>#!/usr/bin/env dub run --single
>/+ dub.sdl:
>	name "hello"
>	dependency "arsd-official" version="~>4.0.1"
>	
>+/
>import std.stdio;
>void main()
>{
>    writeln(`Content-type: text/html`);
>    writeln(``);
>    writeln(`<body style="background: lightgreen">CGI D 
> Example</body>`);
>
>}



More information about the Digitalmars-d-learn mailing list