deda-ca / cgi-node

CGI Node.js complete module to replace PHP on shared hosting such as GoDaddy
http://www.cgi-node.org/
MIT License
173 stars 21 forks source link

Bad Request / Invalid URI #8

Open zgiles opened 9 years ago

zgiles commented 9 years ago

Hey. Awesome project. I've been thinking about making this myself, but happy to see someone else is taking a lead on it.

I seem to be having some trouble though. No matter what I do, I get Invalid URI. I tried different .htaccess test, moved around the file, and cgi-bin. Tried hard coding the node bin in different spots. Cant seem to get it.. All the ExecCGI are in place. The script is 755.

Have you seen this before and have a pointer?

In the apache error log.. [Wed Feb 11 18:55:58 2015] [error] [client 10.125.162.242] Invalid URI in request GET /node_cgi_test/index.jss HTTP/1.1

deda-ca commented 9 years ago

I might be able to help, but my family and I are on vacation with limited internet access. We will be back home next week. I just wanted to drop you a line so you don't think I'm ignoring you ;)

On Wednesday, February 11, 2015, Zach notifications@github.com wrote:

Hey. Awesome project. I've been thinking about making this myself, but happy to see someone else is taking a lead on it.

I seem to be having some trouble though. No matter what I do, I get Invalid URI. I tried different .htaccess test, moved around the file, and cgi-bin. Tried hard coding the node bin in different spots. Cant seem to get it.. All the ExecCGI are in place. The script is 755.

Have you seen this before and have a pointer?

In the apache error log.. [Wed Feb 11 18:55:58 2015] [error] [client 10.125.162.242] Invalid URI in request GET /node_cgi_test/index.jss HTTP/1.1

— Reply to this email directly or view it on GitHub https://github.com/UeiRicho/cgi-node/issues/8.

zgiles commented 9 years ago

Thank. No problem. No hurry.

deda-ca commented 9 years ago

Have you resolved the issue or is still getting the same error? Do you have any proxies rules setup?

If the error is still occurring then I recommend going back to the basics and working your up testing each step until you hit the error. Get a simple (Hello World) index.html page working on the same URL then add index.jss, cgi-bin folder, and cgi-node.js scripts, .htaccess testing it each step of the way.

If this does not work then I'll need more setup information to try to debug it.

danielsokolowski commented 8 years ago

Same issue here, this is making me nutty - wondering if anything jumps out at you, this is inside VirtualHost directive.

 <Location />
          # for development
           Options +Indexes +FollowSymLinks +ExecCGI
           AllowOverride None
           Require all granted

           # Action directive is required and used by both 'teajs' and 'cgi-node', it sends the URL and file path
           # of the requested document using the standard CGI PATH_INFO and PATH_TRANSLATED environment variables.
           #
           # NOTE: run `a2enmod actions && a2enmod cgi`
           AddType text/ssjs .ssjs
           AddHandler text/ssjs .ssjs
           Action  text/ssjs cgi-node.js
    </Location>