Hi,
I'm restricted to developing an application on a shared DreamHost environment, and I'd really like to use Go for this application.
Using other providers (Google Apps, Amazon, VPS, etc) is not possible (my client has restricted me to DreamHost, I'd like to follow their wishes).
I think I should be able to use the net/http/fcgi package.
But since this is a shared host, I cannot configure Apache to use FastCGI over a specific host / port.
I looked at the net/http/fcgi source, and it looks like I can run it over stdin unix pipes, like so:
But it seems like this code doesn't work, my apache logs say:
[Sat Sep 14 13:50:14 2013] [error] [client 98.167.175.61] Premature end of script headers: dispatch.fcgi
And my .htaccess file looks like:
RewriteEngine On
RewriteBase /
RewriteRule ^dispatch\.fcgi/ - [L]
RewriteRule ^(.*)$ dispatch.fcgi/$1 [L]
I'm not super experienced with configuring Apache for FastCGI or the internals of how FastCGI works.
I would really appreciate any help or tips you can give me.
Thank you,
Stephen