How to setup D language with Apache httpd cgi?
Andre Pany
andre at s-e-a-p.de
Wed Jul 31 10:56:31 UTC 2019
On Wednesday, 31 July 2019 at 10:24:38 UTC, BoQsc wrote:
> On Wednesday, 31 July 2019 at 09:09:12 UTC, BoQsc wrote:
>> On Wednesday, 31 July 2019 at 09:03:47 UTC, BoQsc wrote:
>>> And this is the error I get now:
>>>>[Wed Jul 31 11:51:15.341790 2019] [cgid:error] [pid 870:tid
>>>>140153708345088] [client >127.0.0.1:50318] End of script
>>>>output before headers: example.d
>>
>> And I have no idea how to deal with it. Cgi shows Internal
>> Server Error, because of that "End of script output before
>> headers" error.
>
>
> It seems like apache does not like what dub package manager is
> doing, as dub does something before cgi script outputs anything.
> https://stackoverflow.com/questions/22307610/end-of-script-output-before-headers-error-in-apache
As info, the command
dub app.d is
rewritten to:
dub run -q --temp-build --single app.d
I wonder whether -q is correct here
-q Only print warnings and errors
maybe --vquiet should be used instead
-vquiet Print no messages
If there are any warnings, from dub / dmd these could cause
invalid
Internal Server Errors.
Kind regards
André
More information about the Digitalmars-d-learn
mailing list